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 e092be6c383faf4a247304981edc38f9ff7acd6d..2b6ed50569b11f0c9181a9cc747aff347ca413d3 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
-                               dep.deps.proto = net:proto()
+                               dep.proto = net:proto()
                        end
                else
                        field:depends("proto", net:proto())