summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-04-04 14:06:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-04-04 14:06:26 +0000
commit5fed5c91f8e3295e98a3f2e4ce47c962fa22f42b (patch)
treebc791891eed542c6cb9506cb806518be41be5a40 /libs
parent875bfd77063e2162bf6ea12ffbfbacccc6b0d84f (diff)
libs/web: do not cast to string when using network_netlist widget (#560)
Diffstat (limited to 'libs')
-rw-r--r--libs/web/luasrc/view/cbi/network_netlist.htm2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/web/luasrc/view/cbi/network_netlist.htm b/libs/web/luasrc/view/cbi/network_netlist.htm
index 8013f2cc0..7e23d149a 100644
--- a/libs/web/luasrc/view/cbi/network_netlist.htm
+++ b/libs/web/luasrc/view/cbi/network_netlist.htm
@@ -8,6 +8,8 @@
local networks = nwm:get_networks()
local value = self:formvalue(section)
+ self.cast = nil
+
if not value or value == "-" then
value = self:cfgvalue(section) or self.default
end