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 <jo@mein.io>
(cherry picked from commit 8747513951)
This commit is contained in:
Jo-Philipp Wich 2020-05-13 17:20:05 +02:00
parent bcdb9fdc7f
commit ba0fb08d6d

View 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';
};