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>
(cherry picked from commit 1c4284150d)
This commit is contained in:
Jo-Philipp Wich 2021-03-21 00:17:35 +01:00 committed by Rafał Miłecki
parent dfd499b4d4
commit 7147b37a24

View 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);