Пример #1
0
 /**
  * Updates the category for a ticket
  */
 function ticket_cat_id()
 {
     if (!$this->view->can_EditMisc()) {
         exit;
     }
     $ticketid = FSS_Input::getInt('ticketid');
     $ticket_cat_id = FSS_Input::getInt('ticket_cat_id');
     if ($ticketid < 1) {
         exit;
     }
     if ($ticket_cat_id < 1) {
         exit;
     }
     $ticket = new SupportTicket();
     if ($ticket->load($ticketid)) {
         $ticket->updateCategory($ticket_cat_id);
         echo $ticket->getCategory()->title;
     }
     exit;
 }