feat(export.linked_drop_down_list): render compound value

This commit is contained in:
mfo 2024-11-14 09:55:10 +01:00
parent 1fccf0fd18
commit 6cdd801326
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
3 changed files with 19 additions and 11 deletions

View file

@ -46,10 +46,10 @@ class Columns::LinkedDropDownColumn < Columns::ChampColumn
def column_id = "type_de_champ/#{stable_id}->#{path}"
def typed_value(champ)
return nil if path == :value
primary_value, secondary_value = unpack_values(champ.value)
case path
when :value
"#{primary_value} / #{secondary_value}"
when :primary
primary_value
when :secondary