luci-mod-network: routes.js: enforce interface setting
authorJo-Philipp Wich <jo@mein.io>
Mon, 21 Aug 2023 08:09:34 +0000 (10:09 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 21 Aug 2023 14:40:05 +0000 (16:40 +0200)
Fixes: #6521
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a6a428fe60b6fd306bef6d0559bc1d78372b0e56)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js

index da1330aec89352bc7d4a1610b4064057b8c5bfb2..2e987dfb32946ecc2faf2b36be9c2e9dcba80ea5 100644 (file)
@@ -41,6 +41,7 @@ return view.extend({
                        o = s.taboption('general', widgets.NetworkSelect, 'interface', _('Interface'), _('Specifies the logical interface name of the parent (or master) interface this route belongs to'));
                        o.loopback = true;
                        o.nocreate = true;
+                       o.rmempty = false;
 
                        o = s.taboption('general', form.ListValue, 'type', _('Route type'), _('Specifies the route type to be created'));
                        o.modalonly = true;