summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-03-21 00:17:35 +0100
committerJo-Philipp Wich <jo@mein.io>2021-03-21 00:17:35 +0100
commit1c4284150dff9d37503f6f901d047c0caa9a3af0 (patch)
treed428bdf6bc6e6808290bf7b7dda40fb68c9eb50e /modules
parent3bcbcbf0889142ca19b893f41318963b69de90ab (diff)
luci-mod-network: fix invalid variable access when creating interfaces
Fixes: eeef38d534 ("luci-mod-network: add support for bridge vlan filtering") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
index 0157d2b126..19021c4ef1 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
@@ -825,7 +825,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);