Revert "luci-mod-network: ra_preference option uses '' instead of "medium""
authorAndy Chiang <redacted>
Tue, 19 May 2026 16:30:21 +0000 (23:30 +0700)
committerPaul Donald <redacted>
Wed, 27 May 2026 11:32:38 +0000 (14:32 +0300)
This reverts commit 6bcdc18d65c8aee62f0344e1688868edae45d1f7.

Since the bug where a write operation is executed when the input
matches the default has been fixed in form.js, this workaround
is no longer needed and is being reverted.

Signed-off-by: Andy Chiang <redacted>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index bd0d479aa468a4834c5a0bf54bc9c4be3f08d8ab..67a849a9ee88a7031637c0f9bbb83d6d80a9a3b1 100644 (file)
@@ -897,8 +897,9 @@ return view.extend({
 
                                        so = ss.taboption('ipv6-ra', form.ListValue, 'ra_preference', _('Router Priority'),
                                                _('A tie-breaker for clients and their routes when multiple routers exist on the same network.'));
-                                       so.value('', _('Medium'));
+                                       so.default = 'medium';
                                        so.value('low', _('Low'));
+                                       so.value('medium', _('Medium'));
                                        so.value('high', _('High'));
                                        so.depends('ra', 'server');
 
git clone https://git.99rst.org/PROJECT