validate prefilled champs when editing brouillon

This commit is contained in:
sebastiencarceles 2022-11-30 11:23:04 +01:00
parent 79ef48cafb
commit 3939644030
3 changed files with 7 additions and 1 deletions

View file

@ -148,7 +148,7 @@ module Users
def brouillon
@dossier = dossier_with_champs
# TODO: SEB show validation errors
@dossier.valid?(context: :prefilling)
# TODO: remove when the champs are unifed
if !@dossier.autorisation_donnees