Do not set processed_at if already defined
This commit is contained in:
parent
c3b6e7e30f
commit
725cfa45d3
1 changed files with 1 additions and 1 deletions
|
@ -729,7 +729,7 @@ class Dossier < ApplicationRecord
|
||||||
self.en_construction_at = Time.zone.now
|
self.en_construction_at = Time.zone.now
|
||||||
elsif en_instruction? && !self.en_instruction_at
|
elsif en_instruction? && !self.en_instruction_at
|
||||||
self.en_instruction_at = Time.zone.now
|
self.en_instruction_at = Time.zone.now
|
||||||
elsif TERMINE.include?(state)
|
elsif TERMINE.include?(state) && !self.processed_at
|
||||||
self.processed_at = Time.zone.now
|
self.processed_at = Time.zone.now
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue