From 8692f0dd86e6432ff5861a95744ed34b002ff82c Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 5 Jul 2017 15:57:27 +0800 Subject: [PATCH] small fix --- 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 8bc6f8b..b965064 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? && @counselor.hps_city_id.nil? && @counselor.hps_city_id.empty? + 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 %>