]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1765] #users > edit -- please sort effective roles
authorOlivier Lamy <olamy@apache.org>
Wed, 27 Nov 2013 03:42:26 +0000 (03:42 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 27 Nov 2013 03:42:26 +0000 (03:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1545919 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/users.js

index 2a2907675fc234ab327f6f97455457a0c3fc8520..52268a4a9e139e6da5006878bcecf0f7d93fd918 100644 (file)
@@ -188,7 +188,7 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,jqueryui,typeahead) {
             var mappedRoles = $.map(data, function(item) {
               return item.name;
             });
-            user.assignedRoles = ko.observableArray(mappedRoles);
+            user.assignedRoles = ko.observableArray(mappedRoles.sort());
 
             // user form binding
             var createUserForm = mainContent.find("#createUserForm");