small fix
This commit is contained in:
parent
c4cd364bc6
commit
8692f0dd86
|
@ -104,7 +104,7 @@
|
|||
<div class="controls">
|
||||
<%
|
||||
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
|
||||
%>
|
||||
|
|
Loading…
Reference in New Issue