summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-04 14:19:18 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-10 15:28:16 +0200
commite14b884771b223452ec066606f7c7cb5f5dd31b1 (patch)
treee3142b6071cd33709345acc34e4f59b199a344c0 /modules/luci-base
parentaef4bc3a23529425b8036be2baed4327efaf85bb (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')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js2
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 31f6bd9616..34fc097958 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]));
}