diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-09-04 14:19:18 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-10 15:28:16 +0200 |
commit | e14b884771b223452ec066606f7c7cb5f5dd31b1 (patch) | |
tree | e3142b6071cd33709345acc34e4f59b199a344c0 /modules/luci-base/htdocs | |
parent | aef4bc3a23529425b8036be2baed4327efaf85bb (diff) |
luci-base: form.js: do not consider inactive fields for dependency checks
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 31f6bd961..34fc09795 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -517,7 +517,7 @@ var CBIAbstractValue = CBINode.extend({ else { var conf = this.uciconfig || this.section.uciconfig || this.map.config, res = this.map.lookupOption(dep, section_id, conf), - val = res ? res[0].formvalue(res[1]) : null; + val = (res && res[0].isActive(res[1])) ? res[0].formvalue(res[1]) : null; istat = (istat && isEqual(val, this.deps[i][dep])); } |