Fix repository snapshots datatable loading with active reminders [SCI-11134] (#7947)

This commit is contained in:
Alex Kriuchykhin 2024-10-09 11:43:09 +02:00 committed by GitHub
parent f3420e33e2
commit c22998adf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')