mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 18:52:07 +08:00
Add ordering for column mappings in repositories
This commit is contained in:
parent
1f7528d4a4
commit
af4b310754
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class RepositoryDatatable < AjaxDatatablesRails::Base
|
|||
# Make mappings of custom columns, so we have same id for every column
|
||||
i = 5
|
||||
@columns_mappings = {}
|
||||
@repository.repository_columns.each do |column|
|
||||
@repository.repository_columns.order(:id).each do |column|
|
||||
@columns_mappings[column.id] = i.to_s
|
||||
i += 1
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue