From b78fc0ae810d2b44caf5744be9bda013ae368c90 Mon Sep 17 00:00:00 2001 From: Francois Gourichon Date: Fri, 3 Nov 2017 16:51:03 +1100 Subject: [PATCH] [MNOE-772] - Fix error 500 on confirming account --- api/app/views/mno_enterprise/auth/confirmations/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/views/mno_enterprise/auth/confirmations/_form.html.haml b/api/app/views/mno_enterprise/auth/confirmations/_form.html.haml index 4ee4cb45c..69d0609d4 100644 --- a/api/app/views/mno_enterprise/auth/confirmations/_form.html.haml +++ b/api/app/views/mno_enterprise/auth/confirmations/_form.html.haml @@ -17,7 +17,7 @@ .row .col-sm-12 .phone - = f.select :phone_country_code, options_for_select(Country.all.map { |country,code| c = Country.new(code); ["#{c.alpha2} +#{c.country_code}", code]}, MnoEnterprise.app_country), {}, class: 'form-control unstyled' + = f.select :phone_country_code, options_for_select(ISO3166::Country.codes.map { |code| c = ISO3166::Country[code]; ["#{c.alpha2} +#{c.country_code}", code]}, MnoEnterprise.app_country), {}, class: 'form-control unstyled' = f.text_field :phone, placeholder: "*Phone", required: true, 'ng-model' => 'user.phone', class: 'form-control' %br