[Fix #1809] Handle non-champ tags in attestation
This commit is contained in:
parent
2f2e26470d
commit
6ed7ae4b53
2 changed files with 4 additions and 2 deletions
|
@ -27,7 +27,9 @@ class AttestationTemplate < ApplicationRecord
|
|||
used_tags.map do |used_tag|
|
||||
corresponding_champ = all_champs_with_libelle_index[used_tag]
|
||||
|
||||
corresponding_champ.value.blank? ? corresponding_champ : nil
|
||||
if corresponding_champ && corresponding_champ.value.blank?
|
||||
corresponding_champ
|
||||
end
|
||||
end.compact
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue