OEModule\PatientTicketing\controllers\DefaultController::actionNavigateToEvent PHP Method

actionNavigateToEvent() public method

Handles the moving of a ticket to a new Queue.
public actionNavigateToEvent ( $id )
$id
    public function actionNavigateToEvent($id)
    {
        $data = $_POST;
        $response = '1';
        if (strpos(strtolower($data['href']), 'ophcocorrespondence/default/create') !== false) {
            if ($errs = $this->validateForm($id)) {
                $response = json_encode(array('errors' => array_values($errs)));
            } else {
                $data['validated'] = true;
            }
        }
        $this->autoSaveTicket($data);
        echo $response;
    }