luci-base: firewall.js: fix Zone.addRule()
authorJo-Philipp Wich <jo@mein.io>
Mon, 4 May 2020 19:29:01 +0000 (21:29 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 28cf5cd576a7d502bcbfc55c1418dd116f2210e0)

modules/luci-base/htdocs/luci-static/resources/firewall.js

index 40a0354446d22d31421c9b66b5bc196b994f44e9..f7b731e6fcafc60c8302ec9edd481a8298594f5e 100644 (file)
@@ -493,7 +493,7 @@ Zone = AbstractFirewallItem.extend({
 
                uci.set('firewall', sid, 'src', this.getName());
 
-               return new Redirect(sid);
+               return new Rule(sid);
        },
 
        getColor: function(forName) {