From f9a0654b5410b92d8e86fcb5cc458a769721cc33 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 (cherry picked from commit 4c55e8226d7d6808ad7aa7d9a420dfda628a89f0) --- 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 eaab3bb9f0..4a15312407 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.30.2