fix(logic): we need to expose raw typed values for champs

This commit is contained in:
Paul Chavard 2024-10-21 13:09:40 +02:00
parent 5024b5b549
commit 94b06cb50f
No known key found for this signature in database

View file

@ -50,7 +50,8 @@ class Logic::ChampValue < Logic::Term
"Champs::CheckboxChamp"
targeted_champ.true?
when "Champs::IntegerNumberChamp", "Champs::DecimalNumberChamp"
targeted_champ.for_api
# TODO expose raw typed value of champs
targeted_champ.type_de_champ.champ_value_for_api(targeted_champ, version: 1)
when "Champs::DropDownListChamp"
targeted_champ.selected
when "Champs::MultipleDropDownListChamp"