Displaying 1 result from an estimated 1 matches for "sd_status_history".
Did you mean:
pb_status_history
2008 May 13
4
calling another rjs file in an if condition
...is called by a
submit_to_remote
def edit_service_desk_status_after_transfer
if params[:transfer_reason].empty?
#This is used in the :failure of submit_to_remote
else
@sd_ticket = ServiceDeskTicket.find(params[:sd_id])
ActiveRecord::Base.transaction do
@sd_status_history = ServiceDeskStatusHistory.new
@sd_status_history.service_desk_ticket_id = @sd_ticket.id
@sd_status_history.service_desk_status_id =
@sd_ticket.service_desk_status_id
@sd_status_history.save
@sd_ticket.update_attribute("service_desk_status_id",para...