From e13d82a202975bd9ac5eca380049b887cb1d585d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 9 Jun 2021 11:01:36 +0200 Subject: 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 --- .../htdocs/luci-static/resources/view/network/interfaces.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-mod-network/htdocs/luci-static/resources/view') 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) })); -- cgit v1.2.3