Univention Bugzilla – Bug 32845
Not defined checkbox (policy view) is displayd as ticked
Last modified: 2013-12-12 11:32:50 CET
Easily reproducible with the default password policy in which "Password quality check" is not defined but displayed as ticked (with the "(not defined)" phrase appended) when viewed via the "[Policies]" tab on a user object.
*** Bug 33191 has been marked as a duplicate of this bug. ***
Bug was: if (!iinfo instanceof Array) { iwidget.set('value', ''); } -> never true, because "!" beats "instanceof": !undefined instanceof Array -> true instanceof Array -> false. } else { iwidget.set('value', []); } -> [] is evaluated as true for the CheckBox. Did not fix the check, instead removed it completely and also the "else" part. Always set to ''. Because all of this is only evaluated if (!iinfo) { ... } so the whole check was not only buggy, it was useless even if correct. Fixed in univention-management-console-module-udm 4.0.97-10.426.201312042251 YAML added
OK, checkbox is not selected anymore. YAML OK
http://errata.univention.de/ucs/3.2/14.html