fix: champ_value for tdc destroyed
This commit is contained in:
parent
2fee0ddfd4
commit
faa2797d80
1 changed files with 2 additions and 2 deletions
|
@ -33,10 +33,10 @@ class Logic::ChampValue < Logic::Term
|
|||
end
|
||||
end
|
||||
|
||||
def to_s = "#{type_de_champ.libelle} Nº#{stable_id}"
|
||||
def to_s = "#{type_de_champ&.libelle} Nº#{stable_id}" # TODO: gerer le cas ou un tdc est supprimé
|
||||
|
||||
def type
|
||||
case type_de_champ.type_champ
|
||||
case type_de_champ&.type_champ # TODO: gerer le cas ou un tdc est supprimé
|
||||
when MANAGED_TYPE_DE_CHAMP.fetch(:yes_no),
|
||||
MANAGED_TYPE_DE_CHAMP.fetch(:checkbox)
|
||||
CHAMP_VALUE_TYPE.fetch(:boolean)
|
||||
|
|
Loading…
Reference in a new issue