include\staff\ticket-edit.inc.php --------------------------------- Original: :    Replace: :    canAssignTickets()) { ?> :    ************************************************************************************************************************************************* include\class.ticket.php ------------------------ Original: $sql='UPDATE '.TICKET_TABLE.' SET updated=NOW() ' .' ,topic_id='.db_input($vars['topicId']) .' ,sla_id='.db_input($vars['slaId']) .' ,source='.db_input($vars['source']) .' ,duedate='.($vars['duedate']?db_input(date('Y-m-d G:i',Misc::dbtime($vars['duedate'].' '.$vars['time']))):'NULL'); Replace: $assignId = $vars['assignId']; if ($assignId && is_object($assignId)) $assignId = (float) $assignId; if ($assignId>0) { $sql='UPDATE '.TICKET_TABLE.' SET updated=NOW() ' .' ,topic_id='.db_input($vars['topicId']) .' ,sla_id='.db_input($vars['slaId']) .' ,staff_id='.db_input($vars['assignId']) .' ,source='.db_input($vars['source']) .' ,duedate='.($vars['duedate']?db_input(date('Y-m-d G:i',Misc::dbtime($vars['duedate'].' '.$vars['time']))):'NULL'); } else { $sql='UPDATE '.TICKET_TABLE.' SET updated=NOW() ' .' ,topic_id='.db_input($vars['topicId']) .' ,sla_id='.db_input($vars['slaId']) .' ,source='.db_input($vars['source']) .' ,duedate='.($vars['duedate']?db_input(date('Y-m-d G:i',Misc::dbtime($vars['duedate'].' '.$vars['time']))):'NULL'); } ************************************************************************************************************************************************* scp\tickets.php --------------- Original: case 'update': if(!$ticket || !$thisstaff->canEditTickets()) $errors['err']=__('Permission Denied. You are not allowed to edit tickets'); elseif($ticket->update($_POST,$errors)) { $msg=__('Ticket updated successfully'); $_REQUEST['a'] = null; //Clear edit action - going back to view. //Check to make sure the staff STILL has access post-update (e.g dept change). if(!$ticket->checkStaffAccess($thisstaff)) $ticket=null; } elseif(!$errors['err']) { $errors['err']=__('Unable to update the ticket. Correct the errors below and try again!'); } break; Replace: case 'update': if(!$ticket || !$thisstaff->canEditTickets()) $errors['err']=__('Permission Denied. You are not allowed to edit tickets'); elseif($ticket->update($_POST,$errors)) { $msg=__('Ticket updated successfully'); if($_POST['assignId'] > 0) { $ticket->timeSpent($_POST['assignId']); } $_REQUEST['a'] = null; //Clear edit action - going back to view. //Check to make sure the staff STILL has access post-update (e.g dept change). if(!$ticket->checkStaffAccess($thisstaff)) $ticket=null; } elseif(!$errors['err']) { $errors['err']=__('Unable to update the ticket. Correct the errors below and try again!'); } break;