Skip to content

Commit

Permalink
[#2180] Fix updated_at for migration PJ champs
Browse files Browse the repository at this point in the history
  • Loading branch information
fredZen committed Mar 28, 2019
1 parent 2feab67 commit c5f8aa2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def populate_champs_pjs!(procedure, types_de_champ_pj)
pj = dossier.retrieve_last_piece_justificative_by_type(type_pj_id)

if pj.present?
convert_pj_to_champ!(pj, champ)

champ.update(
updated_at: pj.updated_at,
created_at: pj.created_at
)

convert_pj_to_champ!(pj, champ)
else
champ.update(
updated_at: dossier.updated_at,
Expand Down

0 comments on commit c5f8aa2

Please sign in to comment.