This commit is contained in:
BoHung Chiu 2021-10-22 22:20:20 +08:00
parent 1dca65f863
commit a6caffd67f
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class Admin::PropertyHiresController < OrbitAdminController
end
phire.save
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[:page]
redirect_to admin_property_hire_path(phire.property, :page => params[:page])

View File

@ -90,7 +90,7 @@
<%= p_hire.hirer_name %>
</td>
<td>
<%= p_hire.reason_for_hire %>
<%= p_hire.reason_for_hire.to_s + p_hire.tmp_reason_for_hire %>
</td>
<td>
<%= p_hire.hiring_person_number %>