Univention Bugzilla – Bug 40923
Fallback for an empty favorites category is always the second element in the categories array
Last modified: 2016-04-13 14:56:54 CEST
Created attachment 7543 [details] Proposed patch This is a problem for the app appliance branding package (Bug 40006). Where we add an app category with a higher priority than the favorites category. Now the favorites category moves to the second place in the array and is chosen as the fall back for itself.
Created attachment 7544 [details] Proposed patch v2 It would also be nice to select the category with the highest priority if no category is specified instead of selecting the favorites.
You can use array.filter() from dojo - this is cross browser compatible; object.id dot notation is easier to read instead of ['id'] - jshint complains otherwise. Add missing semicolon. array.filter(this.getCategories(), function(category) { return category.id != '_favorites_'; })[0]
UCS4.1-1: r68252: * make sure the fallback for an empty favorites category isn't the favorites category r68254: YAML Package: univention-management-console-frontend Version: 5.0.63-31.1221.201603231043
Changes: OK, they work fine :) ! YAML file: OK, minor adjustment [r68423] VERIFIED
<http://errata.software-univention.de/ucs/4.1/150.html>