libs/web: do not cast to string when using network_netlist widget (#560)

This commit is contained in:
Jo-Philipp Wich 2013-04-04 14:06:26 +00:00
parent 875bfd7706
commit 5fed5c91f8

View 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