From c22998adf23ca1b1891e41481a4935125329c1c2 Mon Sep 17 00:00:00 2001 From: Alex Kriuchykhin Date: Wed, 9 Oct 2024 11:43:09 +0200 Subject: [PATCH] Fix repository snapshots datatable loading with active reminders [SCI-11134] (#7947) --- app/services/repository_datatable_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/repository_datatable_service.rb b/app/services/repository_datatable_service.rb index 8b96a60d3..ade46fb1f 100644 --- a/app/services/repository_datatable_service.rb +++ b/app/services/repository_datatable_service.rb @@ -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')