diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-03-26 19:12:38 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-03-26 19:12:38 +0100 |
commit | 4c55e8226d7d6808ad7aa7d9a420dfda628a89f0 (patch) | |
tree | 4f80a03cc3b5cc0b99a946053ee48a208683b179 /modules | |
parent | a3eb1bff887ab5f29b6ea13403cf2fb547de4c7f (diff) |
luci-base: firewall.js: fix Firewall.removeZone()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/firewall.js | 4 |
1 files 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'); |