revert counters display

in Instructeur::ProceduresController::show, we recently used a grouped query for counters

for some reason, this grouped query in procedure#dossiers_count_for_instructeur
gives incorrect results.
I keep this method as is for now (instructeurs are complaining) and hotfix the controllers
This commit is contained in:
clemkeirua 2020-11-11 16:40:55 +01:00 committed by Keirua (Rebase PR Action)
parent 4339690316
commit dae65c49f6
2 changed files with 7 additions and 8 deletions

View file

@ -102,7 +102,6 @@ module Instructeurs
@has_termine_notifications = current_instructeur.notifications_for_procedure(@procedure, :termine).exists?
@not_archived_notifications_dossier_ids = current_instructeur.notifications_for_procedure(@procedure, :not_archived).pluck(:id)
@counters = @procedure.dossiers_count_for_instructeur(current_instructeur)
sorted_ids = procedure_presentation.sorted_ids(@dossiers, current_instructeur)