diff --git a/app/models/procedure_presentation.rb b/app/models/procedure_presentation.rb index 75872f175..944b2a07b 100644 --- a/app/models/procedure_presentation.rb +++ b/app/models/procedure_presentation.rb @@ -75,7 +75,6 @@ class ProcedurePresentation < ApplicationRecord end def sorted_ids(dossiers, instructeur) - dossiers.each { |dossier| assert_matching_procedure(dossier) } table, column, order = sort.values_at('table', 'column', 'order') case table @@ -110,7 +109,6 @@ class ProcedurePresentation < ApplicationRecord end def filtered_ids(dossiers, statut) - dossiers.each { |dossier| assert_matching_procedure(dossier) } filters[statut].group_by { |filter| filter.values_at('table', 'column') } .map do |(table, column), filters| values = filters.pluck('value') case table