# # Ticket Header # $StTitle = $ArHeaders['StTitle']; $IDTicket = $ArHeaders['IDTicket']; if (array_key_exists('IDDepartment', $ArHeaders)) { $IDDepartment = $ArHeaders['IDDepartment']; } elseif (array_key_exists('IDDepartment', $_POST)) { $IDDepartment = $_POST['IDDepartment']; } else { $IDDepartment = 'single'; } $StSupporter = !empty($ArHeaders['StName']) ? $ArHeaders['StName'] : ''; $StSituation = $ArHeaders['StSituation']; if ($isSupporter) { $BoIgnored = isset($BoIgnored) ? $BoIgnored : F1DeskUtils::isIgnored($IDSupporter, $IDTicket); $BoBookMark = isset($BoBookMark) ? $BoBookMark : F1DeskUtils::isBookmarked($IDSupporter, $IDTicket); } # # Ticket Info # if ($isSupporter) { $ArAttachedTickets = $ObjTicket->getAttachedTickets($IDTicket); $ArTicketsAttached = $ObjTicket->getTicketsAttached($IDTicket); $ArTicketDepartments = $ObjTicket->getTicketDepartments($IDTicket); $ArTicketDepartmentsReader = $ObjTicket->getTicketDepartmentsReader($IDTicket); $ArTicketDestinations = $ObjTicket->getTicketDestination($IDTicket); $ArTicketReaders = $ObjTicket->getTicketReaders($IDTicket); } $ArMessages = $ObjTicket->listTicketMessages($IDTicket); $DtOpened = F1DeskUtils::formatDate('datetime_format', $ArHeaders['DtOpened']);