dossiers: split the dossier creation on several lines
This commit is contained in:
parent
5b2311c851
commit
e32a42cfe6
1 changed files with 5 additions and 1 deletions
|
@ -231,7 +231,11 @@ module Users
|
|||
return redirect_to url_for dossiers_path
|
||||
end
|
||||
|
||||
dossier = Dossier.create!(groupe_instructeur: procedure.defaut_groupe_instructeur, user: current_user, state: Dossier.states.fetch(:brouillon))
|
||||
dossier = Dossier.create!(
|
||||
groupe_instructeur: procedure.defaut_groupe_instructeur,
|
||||
user: current_user,
|
||||
state: Dossier.states.fetch(:brouillon)
|
||||
)
|
||||
|
||||
if dossier.procedure.for_individual
|
||||
if current_user.france_connect_information.present?
|
||||
|
|
Loading…
Reference in a new issue