* luci/admin-full: fixed bug that prevented creation of interface sections in dhcp page

This commit is contained in:
Jo-Philipp Wich 2008-08-04 23:12:14 +00:00
parent 15e7639168
commit 78fb71f881

View file

@ -24,6 +24,7 @@ iface = s:option(ListValue, "interface", translate("interface"))
luci.model.uci.foreach("network", "interface", luci.model.uci.foreach("network", "interface",
function (section) function (section)
if section[".name"] ~= "loopback" then if section[".name"] ~= "loopback" then
iface.default = iface.default or section[".name"]
iface:value(section[".name"]) iface:value(section[".name"])
s:depends("interface", section[".name"]) s:depends("interface", section[".name"])
end end