示例#1
0
 /**
  * @param Mirasvit_Helpdesk_Model_Ticket $ticket
  */
 public function process($ticket)
 {
     if ($ticket->getFpPriorityId()) {
         $ticket->setPriorityId($ticket->getFpPriorityId());
     }
     if ($ticket->getFpStatusId()) {
         $ticket->setStatusId($ticket->getFpStatusId());
     }
     if ($ticket->getFpDepartmentId()) {
         $ticket->setDepartmentId($ticket->getFpDepartmentId());
     }
     if ($ticket->getFpUserId()) {
         $ticket->setUserId($ticket->getFpUserId());
     }
     if ($ticket->getFpIsRemind()) {
         Mage::helper('helpdesk/mail')->sendNotificationReminder($ticket);
     }
     $ticket->setData('fp_execute_at', null)->setData('fp_period_value', null)->setData('fp_period_unit', null)->setData('fp_is_remind', false);
     $ticket->save();
 }