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

remotes/luci-0.12
Jo-Philipp Wich 2013-04-04 14:06:26 +00:00
parent 875bfd7706
commit 5fed5c91f8
1 changed files with 2 additions and 0 deletions

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