diff --git a/lib/open_project/global_roles/patches/roles_controller_patch.rb b/lib/open_project/global_roles/patches/roles_controller_patch.rb index d35218f498..37350a0d98 100644 --- a/lib/open_project/global_roles/patches/roles_controller_patch.rb +++ b/lib/open_project/global_roles/patches/roles_controller_patch.rb @@ -56,7 +56,7 @@ module OpenProject::GlobalRoles::Patches flash[:notice] = l(:notice_successful_create) redirect_to action: 'index' else - @roles = Role.all order: 'builtin, position' + @roles = Role.order('builtin, position').all @member_permissions = Role.new.setable_permissions @global_permissions = GlobalRole.setable_permissions render template: 'roles/new'