From c4cd364bc662521bb78615d195cccbabb301e59d Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 5 Jul 2017 15:55:53 +0800 Subject: [PATCH] small fix for empty city --- app/views/admin/member_counselors/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/member_counselors/_form.html.erb b/app/views/admin/member_counselors/_form.html.erb index b088e3f..8bc6f8b 100644 --- a/app/views/admin/member_counselors/_form.html.erb +++ b/app/views/admin/member_counselors/_form.html.erb @@ -104,7 +104,7 @@
<% opts = [] - if !@counselor.new_record? + if !@counselor.new_record? && @counselor.hps_city_id.nil? && @counselor.hps_city_id.empty? opts = HpsCity.find(@counselor.hps_city_id).hps_counties.asc(:old_id).collect{|sc| [sc.name, sc.id]} end %>