Merge pull request #10056 from tchak/fix-champ-nil

fix(dossier): no crash if condition target champ is not found
This commit is contained in:
Paul Chavard 2024-03-03 09:40:24 +00:00 committed by GitHub
commit c52688e1e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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?