From 5fed5c91f8e3295e98a3f2e4ce47c962fa22f42b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 4 Apr 2013 14:06:26 +0000 Subject: [PATCH] libs/web: do not cast to string when using network_netlist widget (#560) --- libs/web/luasrc/view/cbi/network_netlist.htm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/web/luasrc/view/cbi/network_netlist.htm b/libs/web/luasrc/view/cbi/network_netlist.htm index 8013f2cc08..7e23d149a8 100644 --- a/libs/web/luasrc/view/cbi/network_netlist.htm +++ b/libs/web/luasrc/view/cbi/network_netlist.htm @@ -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 -- 2.30.2