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:
commit
c52688e1e9
1 changed files with 1 additions and 0 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Reference in a new issue