From e59942b7b6e037ce5dc6e3e01d45a6d6d9579bda Mon Sep 17 00:00:00 2001 From: Xiaoming Hu Date: Tue, 17 Dec 2024 16:00:09 +0100 Subject: [PATCH] mini twist --- app/views/institutions/_institution_fields.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/institutions/_institution_fields.html.erb b/app/views/institutions/_institution_fields.html.erb index f91af5bc7c..d423d60cdd 100644 --- a/app/views/institutions/_institution_fields.html.erb +++ b/app/views/institutions/_institution_fields.html.erb @@ -42,7 +42,7 @@
<%= f.label :country -%> - <%= f.text_field :country, value: CountryCodes.country(institution.country), :class=>"form-control" -%> + <%= f.text_field :country, value: institution.nil? ? nil:CountryCodes.country(institution.country), :class=>"form-control" -%>