refactor: always load full dossier

This commit is contained in:
simon lehericey 2024-11-13 11:01:10 +01:00
parent fe0a396dc6
commit c415b066b9
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
4 changed files with 47 additions and 60 deletions

View file

@ -105,7 +105,7 @@ module Instructeurs
.per(ITEMS_PER_PAGE)
@projected_dossiers = DossierProjectionService.project(@filtered_sorted_paginated_ids, procedure_presentation.displayed_columns)
@disable_checkbox_all = @projected_dossiers.all? { _1.batch_operation_id.present? }
@disable_checkbox_all = @projected_dossiers.all? { _1.dossier.batch_operation_id.present? }
@batch_operations = BatchOperation.joins(:groupe_instructeurs)
.where(groupe_instructeurs: current_instructeur.groupe_instructeurs.where(procedure_id: @procedure.id))