[#1421] Format linked dropdown menus in attestations and mails
This commit is contained in:
parent
b326cb9c3e
commit
5192929730
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,7 @@ class Champs::LinkedDropDownListChamp < Champ
|
|||
end
|
||||
|
||||
def for_display
|
||||
[primary_value, secondary_value].compact.join(' / ')
|
||||
string_value
|
||||
end
|
||||
|
||||
def mandatory_and_blank?
|
||||
|
@ -38,6 +38,10 @@ class Champs::LinkedDropDownListChamp < Champ
|
|||
|
||||
private
|
||||
|
||||
def string_value
|
||||
[primary_value, secondary_value].compact.join(' / ')
|
||||
end
|
||||
|
||||
def value_for_export
|
||||
"#{primary_value || ''};#{secondary_value || ''}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue