From 3a0ef9384368d26b38ab2afdfc04ebdf3b233cfd Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 21 Aug 2023 10:09:34 +0200 Subject: [PATCH] luci-mod-network: routes.js: enforce interface setting Fixes: #6521 Signed-off-by: Jo-Philipp Wich (cherry picked from commit a6a428fe60b6fd306bef6d0559bc1d78372b0e56) --- .../htdocs/luci-static/resources/view/network/routes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js index da1330aec8..2e987dfb32 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js @@ -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; -- 2.30.2