feat(export.linked_drop_down_list): render compound value
This commit is contained in:
parent
1fccf0fd18
commit
6cdd801326
3 changed files with 19 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue