From 4c079df8e2b0773da096d92205bd36ba2ec7bd61 Mon Sep 17 00:00:00 2001 From: Godwin Date: Mon, 10 Jul 2017 13:11:17 -0700 Subject: [PATCH] Fixed a bug which caused non-US or CA addresses to crash registration --- app/views/registration_steps/_org_create_address.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/registration_steps/_org_create_address.html.haml b/app/views/registration_steps/_org_create_address.html.haml index 1480fa7..1f09c27 100644 --- a/app/views/registration_steps/_org_create_address.html.haml +++ b/app/views/registration_steps/_org_create_address.html.haml @@ -4,6 +4,6 @@ = save_registration_step do = textfield :address, @address, required: true, big: true .multi-field - = textfield :city, @city.city, readonly: true - = textfield :territory, @city.translate_territory.html_safe, readonly: true - = textfield :country, @city.translate_country.html_safe, readonly: true + = textfield :city, (@city.city || '').html_safe, readonly: true + = textfield :territory, (@city.translate_territory || '').html_safe, readonly: true + = textfield :country, (@city.translate_country ||| '').html_safe, readonly: true