moins de count dans Instructeurs::ProceduresController#show

exploitation de dossiers_count_for_instructeur dans Instructeurs::ProceduresController#showpour sortir les chiffres facilement
This commit is contained in:
clemkeirua 2020-10-14 15:43:25 +02:00 committed by LeSim (Rebase PR Action)
parent b4910c557d
commit 640984f9b6
2 changed files with 8 additions and 7 deletions

View file

@ -102,6 +102,7 @@ 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)