mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 06:22:49 +04:00
libs/web: do not cast to string when using network_netlist widget (#560)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user