summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-06-09 11:01:36 +0200
committerJo-Philipp Wich <jo@mein.io>2021-06-09 11:01:36 +0200
commite13d82a202975bd9ac5eca380049b887cb1d585d (patch)
tree048eacd48d49a8002a819502ac7c1e75cc651c13 /modules/luci-mod-network
parent608f89429b4b8537ddaefd070c777a6d4fb1c7a1 (diff)
luci-mod-network: interfaces.js: fix ifname migration in device sections
The migration code attempted to add new device sections instead of moving the ifname option to a ports list within the existing ones. Fixes: #5108 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network')
-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 98b51c8a8b..0847de905e 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
@@ -392,7 +392,7 @@ return view.extend({
var tasks = [];
this.deviceWithIfnameSections().forEach(function(ds) {
- tasks.push(uci.add('network', ds['.name'], {
+ tasks.push(uci.callSet('network', ds['.name'], {
'ifname': '',
'ports': L.toArray(ds.ifname)
}));