fix(champ): bypass blank? implementation when champ is not in revision
This commit is contained in:
parent
7462a43886
commit
5dd25fd1b6
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ class Champ < ApplicationRecord
|
|||
end
|
||||
|
||||
def blank?
|
||||
type_de_champ.champ_blank?(self)
|
||||
# FIXME: temporary fix to avoid breaking validation
|
||||
in_dossier_revision? ? type_de_champ.champ_blank?(self) : value.blank?
|
||||
end
|
||||
|
||||
def used_by_routing_rules?
|
||||
|
|
Loading…
Reference in a new issue