diff options
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb index 77501833196..0e805200f43 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb @@ -33,7 +33,7 @@ module RolesHelper def groups(role, resource_id=nil) resource_id=(resource_id.blank? ? nil : resource_id.to_i) - group_roles=GroupRole.find(:all, :conditions => {:role => role, :resource_id => resource_id}) + group_roles=GroupRole.find(:all, :include => 'group', :conditions => {:role => role, :resource_id => resource_id}) groups = group_roles.map{|ur| ur.group} Api::Utils.insensitive_sort(groups) {|group| group ? group.name : ''} end |