mirror of https://github.com/openwrt/luci.git
libs/web: do not cast to string when using network_netlist widget (#560)
parent
875bfd7706
commit
5fed5c91f8
|
@ -8,6 +8,8 @@
|
||||||
local networks = nwm:get_networks()
|
local networks = nwm:get_networks()
|
||||||
local value = self:formvalue(section)
|
local value = self:formvalue(section)
|
||||||
|
|
||||||
|
self.cast = nil
|
||||||
|
|
||||||
if not value or value == "-" then
|
if not value or value == "-" then
|
||||||
value = self:cfgvalue(section) or self.default
|
value = self:cfgvalue(section) or self.default
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue