mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Fix sorting by date time columns in inventories [SCI-6683] (#4002)
This commit is contained in:
parent
98144b225c
commit
09d0bb4a32
1 changed files with 1 additions and 1 deletions
|
@ -436,7 +436,7 @@ class RepositoryDatatableService
|
|||
cells = sorting_data_type.joins(
|
||||
"INNER JOIN repository_cells AS repository_sort_cells "\
|
||||
"ON repository_sort_cells.value_id = #{sorting_data_type.table_name}.id "\
|
||||
"AND repository_sort_cells.value_type = '#{sorting_data_type}'"
|
||||
"AND repository_sort_cells.value_type = '#{sorting_data_type.base_class.name}'"
|
||||
).where('repository_sort_cells.repository_column_id': sorting_column.id)
|
||||
|
||||
if sorting_data_type.const_defined?('EXTRA_SORTABLE_VALUE_INCLUDE')
|
||||
|
|
Loading…
Reference in a new issue