luci-base: firewall.js: fix Firewall.removeZone()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
a3eb1bff88
commit
4c55e8226d
1 changed files with 2 additions and 2 deletions
|
@ -154,8 +154,8 @@ Firewall = L.Class.extend({
|
|||
|
||||
if (section != null && section['.type'] == 'zone') {
|
||||
found = true;
|
||||
name = zone.name;
|
||||
uci.remove('firewall', zone['.name']);
|
||||
name = section.name;
|
||||
uci.remove('firewall', section['.name']);
|
||||
}
|
||||
else if (name != null) {
|
||||
var sections = uci.sections('firewall', 'zone');
|
||||
|
|
Loading…
Reference in a new issue