refactor(dossier): rename check_mandatory_champs -> check_mandatory_and_visible_champs

This commit is contained in:
simon lehericey 2022-10-17 10:41:47 +02:00 committed by LeSim
parent 9bba2093be
commit fbf089d60e
3 changed files with 6 additions and 5 deletions

View file

@ -462,7 +462,7 @@ module Users
end
if dossier.en_construction?
errors += @dossier.check_mandatory_champs
errors += @dossier.check_mandatory_and_visible_champs
end
errors
@ -473,7 +473,7 @@ module Users
@dossier.valid?(**submit_validation_options)
errors += @dossier.errors.full_messages
errors += @dossier.check_mandatory_champs
errors += @dossier.check_mandatory_and_visible_champs
if should_fill_groupe_instructeur?
@dossier.assign_to_groupe_instructeur(defaut_groupe_instructeur)