From: Jo-Philipp Wich Date: Wed, 4 Sep 2019 12:19:18 +0000 (+0200) Subject: luci-base: form.js: do not consider inactive fields for dependency checks X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e14b884771b223452ec066606f7c7cb5f5dd31b1;p=oweals%2Fluci.git luci-base: form.js: do not consider inactive fields for dependency checks Signed-off-by: Jo-Philipp Wich --- 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])); }