Fix behaviour of dynamicdhcp field (thanks to Fabio Mercuri)
This commit is contained in:
parent
203af0504b
commit
413ac9895e
1 changed files with 6 additions and 2 deletions
|
@ -45,7 +45,11 @@ s:option(Value, "limit", translate("limit")).rmempty = true
|
||||||
|
|
||||||
s:option(Value, "leasetime").rmempty = true
|
s:option(Value, "leasetime").rmempty = true
|
||||||
|
|
||||||
s:option(Flag, "dynamicdhcp").rmempty = true
|
local dd = s:option(Flag, "dynamicdhcp")
|
||||||
|
dd.rmempty = false
|
||||||
|
function dd.cfgvalue(self, section)
|
||||||
|
return Flag.cfgvalue(self, section) or "1"
|
||||||
|
end
|
||||||
|
|
||||||
s:option(Value, "name", translate("name")).optional = true
|
s:option(Value, "name", translate("name")).optional = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue