From 011c8db17332f13626c783e127146ad04a56f19c Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Tue, 21 Jul 2015 19:09:50 +0300 Subject: [PATCH] Require country code #2776 --- app/views/registrar/contacts/form_partials/_address.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/registrar/contacts/form_partials/_address.haml b/app/views/registrar/contacts/form_partials/_address.haml index 77f868080..1d9ae5869 100644 --- a/app/views/registrar/contacts/form_partials/_address.haml +++ b/app/views/registrar/contacts/form_partials/_address.haml @@ -31,5 +31,6 @@ = f.label :country_code, t(:country) + '*' .col-md-7 - country_selected = f.object.persisted? ? f.object.country_code : 'EE' - = f.select :country_code, SortedCountry.all_options(country_selected), - { include_blank: true } + = f.select(:country_code, SortedCountry.all_options(country_selected), + { include_blank: true }, required: true) +