Fixes: #3279
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
{ DynamicList,
"remote",
"1.2.3.4",
- translate("Remote host name or ip address"),
- { client="1" } },
+ translate("Remote host name or ip address") },
{ Flag,
"remote_random",
0,
function o.remove(self, section)
local cfg_val = AbstractValue.cfgvalue(self, section)
local txt_val = luci.http.formvalue("cbid."..self.map.config.."."..section.."."..self.option..".textbox")
-
+
if cfg_val and fs.access(cfg_val) and txt_val == "" then
fs.unlink(cfg_val)
end