mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 07:44:46 +08:00
Merge pull request #2602 from aignatov-bio/ai-sci-4675-fix-ordering-of-columns-to-snapshots
Fix snapshot column ordering by parent_id [SCI-4675]
This commit is contained in:
commit
3a1280fead
1 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,15 @@
|
|||
class RepositorySnapshotDatatableService < RepositoryDatatableService
|
||||
private
|
||||
|
||||
def create_columns_mappings
|
||||
index = @repository.default_columns_count
|
||||
@mappings = {}
|
||||
@repository.repository_columns.order(:parent_id).each do |column|
|
||||
@mappings[column.id] = index.to_s
|
||||
index += 1
|
||||
end
|
||||
end
|
||||
|
||||
def process_query
|
||||
search_value = build_conditions(@params)[:search_value]
|
||||
order_obj = build_conditions(@params)[:order_by_column]
|
||||
|
|
Loading…
Reference in a new issue