mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
Fix repository snapshots datatable loading with active reminders [SCI-11134] (#7947)
This commit is contained in:
parent
f3420e33e2
commit
c22998adf2
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class RepositoryDatatableService
|
|||
repository_rows =
|
||||
if @repository.archived? || @repository.is_a?(RepositorySnapshot)
|
||||
# don't load reminders for archived repositories or snapshots
|
||||
repository_rows.select('FALSE AS has_active_stock_reminders, FALSE AS has_active_datetime_reminders')
|
||||
repository_rows.select('FALSE AS has_active_reminders')
|
||||
else
|
||||
repository_rows.left_outer_joins_active_reminders(@repository, @user)
|
||||
.select('COUNT(repository_cells_with_active_reminders.id) > 0 AS has_active_reminders')
|
||||
|
|
Loading…
Reference in a new issue