feat(dossier): exclude conditionally invisible fields from mandatory check
This commit is contained in:
parent
120b593015
commit
0f9d8b6a39
7 changed files with 21 additions and 21 deletions
|
@ -32,8 +32,8 @@ class Champs::TitreIdentiteChamp < Champ
|
|||
# We don’t know how to search inside documents yet
|
||||
end
|
||||
|
||||
def mandatory_and_blank?
|
||||
mandatory? && !piece_justificative_file.attached?
|
||||
def mandatory_blank_and_visible?
|
||||
mandatory? && !piece_justificative_file.attached? && visible?
|
||||
end
|
||||
|
||||
def for_export
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue