Since Bug#31376: Problem is _setAllValues(), which sets values not before this._allWidgetsBuiltDeferred. But _setValueAttr does: _setAllValues(vals); _set('value', this.get('value')); // currently empty!
I moved this._set('value') from _setValueAttr to _setAllValueAttr. Should work although it feels wrong to not immediately set a value. univention-management-console-frontend 3.0.113-1.759.201310190251
Maybe just _registerOptionWatchHandler: function() { var optionsWidget = this._form.widgets.$options$; + if (!optionsWidget) { + return; + } this.own(optionsWidget.watch('value', lang.hitch(this, function(attr, oldVal, newVal) { this.onOptionsChanged(newVal); }))); ... At least it worked for me. But I do not want to mess around. Please also see Bug#32381, Comment 17 - maybe caching problem? Or maybe just timing... I don't know.
(In reply to Dirk Wiesenthal from comment #2) > Maybe just > > _registerOptionWatchHandler: function() { > var optionsWidget = this._form.widgets.$options$; > + if (!optionsWidget) { > + return; > + } > this.own(optionsWidget.watch('value', lang.hitch(this, function(attr, > oldVal, newVal) { > this.onOptionsChanged(newVal); > }))); > ... > > > At least it worked for me. But I do not want to mess around. Please also see > Bug#32381, Comment 17 - maybe caching problem? Or maybe just timing... I > don't know. Oops. Wrong bug!
Changelog not needed, bug during development
The changes look good. In my test, the watch handler was called properly after all values have been loaded.
UCS 3.2 has been released: http://docs.univention.de/release-notes-3.2-en.html http://docs.univention.de/release-notes-3.2-de.html If this error occurs again, please use "Clone This Bug".