libs/web: do not cast to string when using network_netlist widget (#560)
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 4 Apr 2013 14:06:26 +0000 (14:06 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 4 Apr 2013 14:06:26 +0000 (14:06 +0000)
libs/web/luasrc/view/cbi/network_netlist.htm

index 8013f2c..7e23d14 100644 (file)
@@ -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