Browse Source

Sort case log index table by most recent by default (#567)

pull/619/head
baarkerlounger 3 years ago committed by baarkerlounger
parent
commit
a078517c46
  1. 1
      app/controllers/case_logs_controller.rb

1
app/controllers/case_logs_controller.rb

@ -131,6 +131,7 @@ private
query = query.public_send("filter_by_#{category}", values, current_user) query = query.public_send("filter_by_#{category}", values, current_user)
end end
end end
query = query.order(created_at: :desc)
current_user.support? ? query.all.includes(:owning_organisation, :managing_organisation) : query current_user.support? ? query.all.includes(:owning_organisation, :managing_organisation) : query
end end

Loading…
Cancel
Save