mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 14:44:26 +08:00
Fix sorted reports table pagination [SCI-10359] (#7304)
This commit is contained in:
parent
e8417ef083
commit
94b5475728
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ module Lists
|
|||
sort_by = "#{sortable_columns[order_params[:column].to_sym]} #{sort_direction(order_params)}"
|
||||
@records = @records.order(sort_by)
|
||||
end
|
||||
@records = @records.order(:id)
|
||||
end
|
||||
|
||||
def sortable_columns
|
||||
|
|
Loading…
Reference in a new issue