Draft session management Prefill get

This commit is contained in:
Damien Le Thiec 2023-02-27 10:48:59 +01:00
parent a9f342d09e
commit d7592afdd1
2 changed files with 25 additions and 5 deletions

View file

@ -143,6 +143,9 @@ module Users
end
def brouillon
session.delete(:prefill_token)
session.delete(:prefill_token_expires_at)
session.delete(:prefill_params)
@dossier = dossier_with_champs
@dossier.valid?(context: :prefilling)