From a6caffd67f7c696999c8108acb719e8f351b7302 Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 22 Oct 2021 22:20:20 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/property_hires_controller.rb | 2 +- app/views/admin/property_hires/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/property_hires_controller.rb b/app/controllers/admin/property_hires_controller.rb index b8408e3..c522754 100644 --- a/app/controllers/admin/property_hires_controller.rb +++ b/app/controllers/admin/property_hires_controller.rb @@ -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]) diff --git a/app/views/admin/property_hires/show.html.erb b/app/views/admin/property_hires/show.html.erb index 14bedba..9509948 100644 --- a/app/views/admin/property_hires/show.html.erb +++ b/app/views/admin/property_hires/show.html.erb @@ -90,7 +90,7 @@ <%= p_hire.hirer_name %> - <%= p_hire.reason_for_hire %> + <%= p_hire.reason_for_hire.to_s + p_hire.tmp_reason_for_hire %> <%= p_hire.hiring_person_number %>