diff --git a/app/models/dossier.rb b/app/models/dossier.rb index 1411b5df7..adb1de4fd 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -729,7 +729,7 @@ class Dossier < ApplicationRecord self.en_construction_at = Time.zone.now elsif en_instruction? && !self.en_instruction_at self.en_instruction_at = Time.zone.now - elsif TERMINE.include?(state) + elsif TERMINE.include?(state) && !self.processed_at self.processed_at = Time.zone.now end end