Merge pull request #339 from Seak/master
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 10 Mar 2015 17:53:37 +0000 (18:53 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 10 Mar 2015 17:53:37 +0000 (18:53 +0100)
ifaces.lua:fix generating /etc/config/dhcp section

modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua

index c2e5c72..e092be6 100644 (file)
@@ -135,7 +135,7 @@ end
 
 -- dhcp setup was requested, create section and reload page
 if m:formvalue("cbid.dhcp._enable._enable") then
-       m.uci:section("dhcp", "dhcp", nil, {
+       m.uci:section("dhcp", "dhcp", arg[1], {
                interface = arg[1],
                start     = "100",
                limit     = "150",