From 4c55e8226d7d6808ad7aa7d9a420dfda628a89f0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 26 Mar 2020 19:12:38 +0100 Subject: [PATCH] luci-base: firewall.js: fix Firewall.removeZone() Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/firewall.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/firewall.js b/modules/luci-base/htdocs/luci-static/resources/firewall.js index eaab3bb9f..4a1531240 100644 --- a/modules/luci-base/htdocs/luci-static/resources/firewall.js +++ b/modules/luci-base/htdocs/luci-static/resources/firewall.js @@ -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'); -- 2.25.1