Commit c4d4481f4c66797434dca6426393e770c9d5785e
Exists in
spb-stable
and in
3 other branches
Merge branch 'fix-group-projects-sort' into 'master'
Sort projects by activity at group show page
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/groups_controller.rb
| ... | ... | @@ -100,7 +100,7 @@ class GroupsController < ApplicationController |
| 100 | 100 | end |
| 101 | 101 | |
| 102 | 102 | def projects |
| 103 | - @projects ||= ProjectsFinder.new.execute(current_user, group: group) | |
| 103 | + @projects ||= ProjectsFinder.new.execute(current_user, group: group).sorted_by_activity.non_archived | |
| 104 | 104 | end |
| 105 | 105 | |
| 106 | 106 | def project_ids | ... | ... |