luci-mod-network: interfaces.js: fix ifname migration in device sections
authorJo-Philipp Wich <[email protected]>
Wed, 9 Jun 2021 09:01:36 +0000 (11:01 +0200)
committerJo-Philipp Wich <[email protected]>
Sat, 12 Jun 2021 18:01:57 +0000 (20:01 +0200)
commita648b3637286da16a839892c45a81f75f90553d2
tree50ebc837371a413fe3307df62fcce6fa80bf64b7
parentda2eefe94b947f37d848f8b04e3f44a979241de0
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 <[email protected]>
(cherry picked from commit e13d82a202975bd9ac5eca380049b887cb1d585d)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js