From: Jo-Philipp Wich Date: Sat, 20 Mar 2021 23:17:35 +0000 (+0100) Subject: luci-mod-network: fix invalid variable access when creating interfaces X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7147b37a242f3806ff9541984c9f5e971ea709f5;p=project%2Fluci.git 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 (cherry picked from commit 1c4284150dff9d37503f6f901d047c0caa9a3af0) --- 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 b647f30c85..7b3f93d50a 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 @@ -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);