luci-mod-network: interfaces.js: fix ifname migration in device sections
authorJo-Philipp Wich <jo@mein.io>
Wed, 9 Jun 2021 09:01:36 +0000 (11:01 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 9 Jun 2021 09:01:36 +0000 (11:01 +0200)
commite13d82a202975bd9ac5eca380049b887cb1d585d
tree048eacd48d49a8002a819502ac7c1e75cc651c13
parent608f89429b4b8537ddaefd070c777a6d4fb1c7a1
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>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js