luci-mod-network: fix invalid variable access when creating interfaces
authorJo-Philipp Wich <jo@mein.io>
Sat, 20 Mar 2021 23:17:35 +0000 (00:17 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 27 May 2021 10:19:05 +0000 (12:19 +0200)
Fixes: eeef38d534 ("luci-mod-network: add support for bridge vlan filtering")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1c4284150dff9d37503f6f901d047c0caa9a3af0)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index b647f30c85265849459d660f19175d69cdc23edc..7b3f93d50ad451646222e9ac7aa975d6eebdb763 100644 (file)
@@ -909,7 +909,7 @@ return view.extend({
                                                                        }
 
                                                                        return m.save(function() {
-                                                                               uci.add('network', 'interface', nameval);
+                                                                               var section_id = uci.add('network', 'interface', nameval);
 
                                                                                protoclass.set('proto', protoval);