Skip to content

Commit

Permalink
Sort issues in descending order of their last update
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 26, 2023
1 parent 2059a7d commit b5b2e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/issues_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def index
@issue_types.push("DiaryEntry", "DiaryComment", "User") if current_user.administrator?

@users = User.joins(:roles).where(:user_roles => { :role => current_user.roles.map(&:role) }).distinct
@issues = Issue.visible_to(current_user)
@issues = Issue.visible_to(current_user).order(:updated_at => :desc)

# If search
if params[:search_by_user]&.present?
Expand Down

0 comments on commit b5b2e4d

Please sign in to comment.