applications/firewall: fix display of enabled/disabled rules, #594
This commit is contained in:
parent
c16cbd527c
commit
1354c88aee
1 changed files with 1 additions and 3 deletions
|
@ -258,9 +258,7 @@ function opt_enabled(s, t, ...)
|
||||||
return o
|
return o
|
||||||
else
|
else
|
||||||
local o = s:option(t, "enabled", ...)
|
local o = s:option(t, "enabled", ...)
|
||||||
o.enabled = ""
|
o.default = "1"
|
||||||
o.disabled = "0"
|
|
||||||
o.default = o.enabled
|
|
||||||
return o
|
return o
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue