From 1c4284150dff9d37503f6f901d047c0caa9a3af0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 21 Mar 2021 00:17:35 +0100 Subject: 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 --- .../htdocs/luci-static/resources/view/network/interfaces.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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); -- cgit v1.2.3