small fix
This commit is contained in:
parent
c4cd364bc6
commit
8692f0dd86
|
@ -104,7 +104,7 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%
|
<%
|
||||||
opts = []
|
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]}
|
opts = HpsCity.find(@counselor.hps_city_id).hps_counties.asc(:old_id).collect{|sc| [sc.name, sc.id]}
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
|
|
Loading…
Reference in New Issue