diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 0eba2e718..25bb06d75 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -709,7 +709,7 @@ class Procedure < ApplicationRecord close! end - dossiers.visible_by_administration.each do |dossier| + dossiers.visible_by_administration.find_each do |dossier| dossier.hide_and_keep_track!(author, :procedure_removed) end