summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-08-04 23:12:14 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-08-04 23:12:14 +0000
commit78fb71f88177ac7e9234065a8bdbe8310ffa95ad (patch)
tree0d9e832d352019b53da0d8a0aae715c178a7bcae
parent15e763916815fdf1f76386a8e5090a849d2310a1 (diff)
* luci/admin-full: fixed bug that prevented creation of interface sections in dhcp page
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
index e9ab6c93d..7a4b3c134 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
@@ -24,6 +24,7 @@ iface = s:option(ListValue, "interface", translate("interface"))
luci.model.uci.foreach("network", "interface",
function (section)
if section[".name"] ~= "loopback" then
+ iface.default = iface.default or section[".name"]
iface:value(section[".name"])
s:depends("interface", section[".name"])
end
@@ -61,4 +62,4 @@ s:option(Value, "macaddr", translate("macaddress"))
s:option(Value, "ipaddr", translate("ipaddress"))
-return m, m2 \ No newline at end of file
+return m, m2