Fix bug.
This commit is contained in:
parent
1dca65f863
commit
a6caffd67f
|
@ -160,7 +160,7 @@ class Admin::PropertyHiresController < OrbitAdminController
|
||||||
end
|
end
|
||||||
phire.save
|
phire.save
|
||||||
email = [phire.hiring_person_email].select{|e| e.present?}
|
email = [phire.hiring_person_email].select{|e| e.present?}
|
||||||
Admin::PropertyHiresHelper::HireMethod.send_mail('p_hire',email,phire.property.id,nil,hire.id,(current_user.id rescue nil))
|
Admin::PropertyHiresHelper::HireMethod.send_mail('p_hire',email,phire.property.id,nil,phire.id,(current_user.id rescue nil))
|
||||||
if params[:ref] == "index"
|
if params[:ref] == "index"
|
||||||
if params[:page]
|
if params[:page]
|
||||||
redirect_to admin_property_hire_path(phire.property, :page => params[:page])
|
redirect_to admin_property_hire_path(phire.property, :page => params[:page])
|
||||||
|
|
|
@ -90,7 +90,7 @@
|
||||||
<%= p_hire.hirer_name %>
|
<%= p_hire.hirer_name %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<%= p_hire.reason_for_hire %>
|
<%= p_hire.reason_for_hire.to_s + p_hire.tmp_reason_for_hire %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<%= p_hire.hiring_person_number %>
|
<%= p_hire.hiring_person_number %>
|
||||||
|
|
Loading…
Reference in New Issue