luci-base: form.js: consider aliased options in AbstractValue.remove()
authorJo-Philipp Wich <jo@mein.io>
Tue, 1 Jun 2021 12:45:42 +0000 (14:45 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 12 Jun 2021 17:23:10 +0000 (19:23 +0200)
commit9bbf5d40025fd9938d5c091fd0b8ad86f0089962
tree6a173f178297ce6fe8a3e4d047b9232c3da5d94e
parent5bdb5fd6972d021c2317378ab69496cc87b5633f
luci-base: form.js: consider aliased options in AbstractValue.remove()

If different options point to the same underlying uci option, we must only
remove the uci value if none of the other alias options is active in order
to prevent inactive options (due to unsatisfied depends) removing the uci
value of active once on save.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f3f74bd0fe66b94a99a8d944b63dcd6bdd1b93c6)
modules/luci-base/htdocs/luci-static/resources/form.js