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>
This commit is contained in:
parent
f01b43c698
commit
8747513951
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ return view.extend({
|
||||||
o.rmempty = true;
|
o.rmempty = true;
|
||||||
o.modalonly = true;
|
o.modalonly = true;
|
||||||
o.cfgvalue = function(section_id) {
|
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';
|
return cfgvalue || 'main';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue