Verified Commit 8070b2cf authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

catch invalid country code on record, so views will not crash because of it

parent 1893f724
Pipeline #19441 canceled with stage
in 15 minutes and 25 seconds
......@@ -69,8 +69,9 @@ module ApplicationHelper
def nationality_name(nationality)
return '' if nationality.blank?
c = ISO3166::Country[nationality]
c.translations[I18n.locale.to_s] ||
country = ISO3166::Country[nationality]
return '' unless country
country.translations[I18n.locale.to_s] ||
def request_params_filter(query)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment