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>
Tue, 1 Jun 2021 13:34:11 +0000 (15:34 +0200)
commitf3f74bd0fe66b94a99a8d944b63dcd6bdd1b93c6
tree8e41cd5e65cbe8584690f57a59487dc99b4ef795
parent671c94b034db9d7470d5f1e681b919158de205f6
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>
modules/luci-base/htdocs/luci-static/resources/form.js