mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 16:14:58 +08:00
Fix inventory snapshot loading in full view [SCI-11168] (#7954)
This commit is contained in:
parent
a03bd8e4ec
commit
63a470a8ac
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ class RepositorySnapshotDatatableService < RepositoryDatatableService
|
|||
repository_rows = fetch_rows(search_value).preload(Extends::REPOSITORY_ROWS_PRELOAD_RELATIONS)
|
||||
repository_rows = repository_rows.preload(:repository_columns, repository_cells: { value: @repository.cell_preload_includes }) if @preload_cells
|
||||
repository_rows = repository_rows.preload(:repository_stock_cell, :repository_stock_value) if @repository.has_stock_management?
|
||||
# don't load reminders for snapshots
|
||||
repository_rows = repository_rows.select('FALSE AS has_active_reminders') if Repository.reminders_enabled?
|
||||
|
||||
sort_rows(order_by_column, repository_rows)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue