getId()) die('Invalid path'); //Make sure the staff is allowed to access the page. if(!@$thisstaff->isStaff() || !$ticket->checkStaffAccess($thisstaff)) die('Access Denied'); //Re-use the post info on error...savekeyboards.org (Why keyboard? -> some people care about objects than users!!) $info=($_POST && $errors)?Format::input($_POST):array(); //Auto-lock the ticket if locking is enabled.. If already locked by the user then it simply renews. if($cfg->getLockTime() && !$ticket->acquireLock($thisstaff->getId(),$cfg->getLockTime())) $warn.=__('Unable to obtain a lock on the ticket'); //Get the goodies. $dept = $ticket->getDept(); //Dept $staff = $ticket->getStaff(); //Assigned or closed by.. $user = $ticket->getOwner(); //Ticket User (EndUser) $team = $ticket->getTeam(); //Assigned team. $sla = $ticket->getSLA(); $lock = $ticket->getLock(); //Ticket lock obj $id = $ticket->getId(); //Ticket ID. //Useful warnings and errors the user might want to know! if ($ticket->isClosed() && !$ticket->isReopenable()) $warn = sprintf( __('Current ticket status (%s) does not allow the end user to reply.'), $ticket->getStatus()); elseif ($ticket->isAssigned() && (($staff && $staff->getId()!=$thisstaff->getId()) || ($team && !$team->hasMember($thisstaff)) )) $warn.= sprintf(' %s', sprintf(__('Ticket is assigned to %s'), implode('/', $ticket->getAssignees()) )); if (!$errors['err']) { if ($lock && $lock->getStaffId()!=$thisstaff->getId()) $errors['err'] = sprintf(__('This ticket is currently locked by %s'), $lock->getStaffName()); elseif (($emailBanned=TicketFilter::isBanned($ticket->getEmail()))) $errors['err'] = __('Email is in banlist! Must be removed before any reply/response'); elseif (!Validator::is_valid_email($ticket->getEmail())) $errors['err'] = __('EndUser email address is not valid! Consider updating it before responding'); } $unbannable=($emailBanned) ? BanList::includes($ticket->getEmail()) : false; if($ticket->isOverdue()) $warn.=' '.__('Marked overdue!').''; ?>
getNumber()); ?> |
canBanEmails()
|| $thisstaff->canEditTickets()
|| ($dept && $dept->isManager($thisstaff))) { ?>
isOpen()
&& !$ticket->isAssigned()
&& $thisstaff->canAssignTickets()
&& $ticket->getDept()->isMember($thisstaff)) {?>
|
canEditTickets()) { ?>
|
|
|
|
|
SI"; elseif ($entry['thread_type']=='R') echo "Visible por el cliente: SI"; else echo "Visible por el cliente: NO"; ?>
|
|||
---|---|---|---|
"; else echo " "; ?>
toHtml(); ?>
"; else echo " "; ?> | |||
getAttachmentsLinks(); ?> |