fix(champ): bypass blank? implementation when champ is not in revision

This commit is contained in:
Paul Chavard 2024-12-10 11:20:29 +01:00
parent 7462a43886
commit 5dd25fd1b6
No known key found for this signature in database

View file

@ -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?