From ba0fb08d6dd63b0b64911bd453373ee51ef6db02 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 13 May 2020 17:20:05 +0200 Subject: [PATCH] luci-mod-network: fix reading static route table value Ref: https://forum.openwrt.org/t/static-route-shows-incorrect-table/63514 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 87475139516d37d86c038e7432837f6ba409d7a9) --- .../htdocs/luci-static/resources/view/network/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 58a151de08..b218daac34 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 @@ -77,7 +77,7 @@ return view.extend({ o.rmempty = true; o.modalonly = true; o.cfgvalue = function(section_id) { - var cfgvalue = this.super('cfgvalue', [section_id]); + var cfgvalue = this.map.data.get('network', section_id, 'table'); return cfgvalue || 'main'; }; -- 2.30.2