Univention Bugzilla – Bug 31318
Static array reference in umc/widgets/MultiSelect
Last modified: 2013-07-10 14:17:31 CEST
Created attachment 5216 [details] Fix for member variable value in umc/widgets/MultiSelect Occurred during work on Bug 31158, after reopening the exam module, values in the MultiUploader from the previously closed module instance were still there. The problem here is a static array reference for the umc/widgets/MultiSelect:value. Other side effects than the current one are not known, but possible. The attached patch fixes this problem.
*** Bug 31418 has been marked as a duplicate of this bug. ***
Fixed for 3.1-1 Errata + 3.2. The YAML file as well as changelog have been adjusted accordingly.
YAML file: 2013-07-01-univention-management-console-frontend.yaml
Maybe I misunderstood the bug. But the "Start exam" module still has the files selected when using it the second time. At least in FF 22. This should not be the case anymore, no?
I do not see why this happens at all. Is it the very same module that was closed when opened again? Or is the wizard cached? Isn't this the bug? In MultiSelect it says somewhere: if (!(this.value instanceof Array)) { this.value = [] } This is probably the reason why the behaviour did not changed. (But I did not go into detail here)
There was a static array reference in MultiUploader which needed to be fixed. Packages are building for errata and 3.2. univention-management-console-frontend (2.0.244-16) unstable; urgency=low . * Bug #31308: replace static array reference in umc/widgest/MultiUploader univention-management-console-frontend (3.0.14-1) unstable; urgency=low . * Bug #31308: replace static array reference in umc/widgest/MultiUploader
Works
http://errata.univention.de/ucs/3.1/144.html