From 87475139516d37d86c038e7432837f6ba409d7a9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 13 May 2020 17:20:05 +0200 Subject: 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 --- .../htdocs/luci-static/resources/view/network/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 58a151de0..b218daac3 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'; }; -- cgit v1.2.3