From: Jo-Philipp Wich Date: Thu, 26 Mar 2020 18:12:38 +0000 (+0100) Subject: luci-base: firewall.js: fix Firewall.removeZone() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4c55e8226d7d6808ad7aa7d9a420dfda628a89f0;p=oweals%2Fluci.git luci-base: firewall.js: fix Firewall.removeZone() Signed-off-by: Jo-Philipp Wich --- 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');