/** * Set the status of the ticket */ public function setstatusAction() { $statusid = $this->getRequest()->getParam('statusid'); $id = $this->getRequest()->getParam('id'); if (is_numeric($id) && is_numeric($statusid)) { Tickets::setStatus($id, $statusid); $this->_helper->redirector('edit', 'tickets', 'admin', array('id' => $id, 'mex' => 'The task requested has been done', 'status' => 'success')); } $this->_helper->redirector('list', 'tickets', 'admin', array('mex' => 'There was a problem', 'status' => 'danger')); }