luci-base: firewall.js: fix Firewall.removeZone()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-03-26 19:12:38 +01:00
parent a3eb1bff88
commit 4c55e8226d

View file

@ -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');