]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4804 Use case insensitive order on name for projects on Projects Permissions
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 29 Jul 2014 08:09:49 +0000 (10:09 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 29 Jul 2014 08:09:49 +0000 (10:09 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/roles_controller.rb

index 40a0f37b3952c003eb5c0d76d1b94fd32de16555..01abb33a4231e5c195ae593b4e95c1d67a822ee8 100644 (file)
@@ -45,7 +45,7 @@ class RolesController < ApplicationController
         :include => ['user_roles','group_roles'],
         :conditions => ['kee in (?)', @query_result.components().to_a.collect{|component| component.key()}],
         # Even if components are already sorted, we must sort them again as this SQL query will not keep order
-        :order => 'name'
+        :order => 'lower(name)'
     )
     @components_names = params[:names]
     @components_keys = params[:keys]