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 8013f2cc08850049e2876a0c61fce05647b1d36d..7e23d149a8ff200d17cd9e8a7eb0e8c0d2f502c4 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