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
|
end
|
||||||
|
|
||||||
def blank?
|
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
|
end
|
||||||
|
|
||||||
def used_by_routing_rules?
|
def used_by_routing_rules?
|
||||||
|
|
Loading…
Add table
Reference in a new issue