luci-mod-network: fix reading static route table value
authorJo-Philipp Wich <jo@mein.io>
Wed, 13 May 2020 15:20:05 +0000 (17:20 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 May 2020 15:20:05 +0000 (17:20 +0200)
Ref: https://forum.openwrt.org/t/static-route-shows-incorrect-table/63514
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js

index 58a151de0856d2e24761b44fafaddf345d38fcf1..b218daac349ff6e7af4119d44b5c9108d58c428a 100644 (file)
@@ -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';
                        };