summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-08-14 17:04:45 +0200
committerJo-Philipp Wich <jo@mein.io>2019-08-14 22:58:15 +0200
commit7610f1d9cfc64f2841faf3f74db6976dc0c190bc (patch)
tree3663bc9de68012aab5905c5ef82c6040d21a35d2 /modules/luci-base
parent167ad7bb120bc30b186a70b66b0664434e54bc1b (diff)
luci-base: firewall.js: fix addZone()
When checking for an existing zone with the same name internally, addZone() must use the nonblocking lookupZone() instead of the promise returning public getZone() call. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/firewall.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/firewall.js b/modules/luci-base/htdocs/luci-static/resources/firewall.js
index 9ae14e16d..8f6be1813 100644
--- a/modules/luci-base/htdocs/luci-static/resources/firewall.js
+++ b/modules/luci-base/htdocs/luci-static/resources/firewall.js
@@ -99,7 +99,7 @@ Firewall = L.Class.extend({
if (name == null || !/^[a-zA-Z0-9_]+$/.test(name))
return null;
- if (this.getZone(name) != null)
+ if (lookupZone(name) != null)
return null;
var d = new Defaults(),