modules/admin-full: fix cbi dependency of stp flag
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 29 May 2009 23:03:15 +0000 (23:03 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 29 May 2009 23:03:15 +0000 (23:03 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua

index 3037573..b9e65fb 100644 (file)
@@ -53,7 +53,7 @@ br.rmempty = true
 
 stp = s:option(Flag, "stp", translate("a_n_i_stp"),
        translate("a_n_i_stp1", "Enables the Spanning Tree Protocol on this bridge"))
-stp:depends("type", "bridge")
+stp:depends("type", "1")
 stp.rmempty = true
 
 ifname = s:option(Value, "ifname", translate("interface"))