refactor(dossier): rename check_mandatory_champs -> check_mandatory_and_visible_champs
This commit is contained in:
parent
9bba2093be
commit
fbf089d60e
3 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue