[#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
|
end
|
||||||
|
|
||||||
def for_display
|
def for_display
|
||||||
[primary_value, secondary_value].compact.join(' / ')
|
string_value
|
||||||
end
|
end
|
||||||
|
|
||||||
def mandatory_and_blank?
|
def mandatory_and_blank?
|
||||||
|
@ -38,6 +38,10 @@ class Champs::LinkedDropDownListChamp < Champ
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def string_value
|
||||||
|
[primary_value, secondary_value].compact.join(' / ')
|
||||||
|
end
|
||||||
|
|
||||||
def value_for_export
|
def value_for_export
|
||||||
"#{primary_value || ''};#{secondary_value || ''}"
|
"#{primary_value || ''};#{secondary_value || ''}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue