applications/firewall: fix display of enabled/disabled rules, #594

This commit is contained in:
Manuel Munz 2013-09-02 09:48:01 +00:00
parent c16cbd527c
commit 1354c88aee

View file

@ -258,9 +258,7 @@ function opt_enabled(s, t, ...)
return o
else
local o = s:option(t, "enabled", ...)
o.enabled = ""
o.disabled = "0"
o.default = o.enabled
o.default = "1"
return o
end
end