fix(dossier): no crach if condition target champ is not found

This commit is contained in:
Paul Chavard 2024-02-29 15:13:44 +01:00
parent 792cfec32d
commit 1e0baca866

View file

@ -37,6 +37,7 @@ class Logic::ChampValue < Logic::Term
def compute(champs)
targeted_champ = champ(champs)
return nil if targeted_champ.nil?
return nil if !targeted_champ.visible?
return nil if targeted_champ.blank? & !targeted_champ.drop_down_other?