[#1421] Format linked dropdown menus in attestations and mails

This commit is contained in:
Frederic Merizen 2018-06-28 08:43:30 +00:00
parent b326cb9c3e
commit 5192929730

View file

@ -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