luci-mod-admin-full: fx crash in interface model
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 20 Jan 2016 09:52:30 +0000 (10:52 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 20 Jan 2016 09:52:37 +0000 (10:52 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua

index e092be6..2b6ed50 100644 (file)
@@ -373,7 +373,7 @@ for _, field in ipairs(s.children) do
                if next(field.deps) then
                        local _, dep
                        for _, dep in ipairs(field.deps) do
                if next(field.deps) then
                        local _, dep
                        for _, dep in ipairs(field.deps) do
-                               dep.deps.proto = net:proto()
+                               dep.proto = net:proto()
                        end
                else
                        field:depends("proto", net:proto())
                        end
                else
                        field:depends("proto", net:proto())