Merge pull request #8340 from mfo/US/fix-champs-pays
sentry(3830513995): champs pays peut avoir un external_id a '', test la presence d'external_id sinon on peut renvoyer du nil via Champs::PaysChamp.name
This commit is contained in:
commit
1f5db1faf2
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class Champs::PaysChamp < Champs::TextChamp
|
|||
end
|
||||
|
||||
def name
|
||||
if external_id
|
||||
if external_id.present?
|
||||
APIGeoService.country_name(external_id)
|
||||
else
|
||||
value.present? ? value.to_s : ''
|
||||
|
|
Loading…
Reference in a new issue