So Far
I found some lines in ~/include/class.ticket.php that could be useful if someone could help me:
//Assign: staff
function assignStaff($staffId,$message,$alertstaff=true) {
global $thisuser,$cfg;
$staff = new Staff($staffId);
if(!$staff || !$staff->isAvailable() || !$thisuser)
return false;
if($this->setStaffId($staff->getId())){
//Reopen the ticket if cloed.
if($this->isClosed()) //Assigned ticket Must be open.
$this->reopen();
$this->reload(); //
<STRONG><s>**</s>//Send Notice + Message to assignee. (if directed)<e>**</e></STRONG>
if($alertstaff && ($thisuser && $staff->getId()!=$thisuser->getId())) { //No alerts for self assigned.
//Send Notice + Message to assignee.
$dept=$this->getDept();
if(!$dept || !($tplId=$dept->getTemplateId()))
$tplId=$cfg->getDefaultTemplateId();
$sql='SELECT assigned_alert_subj,assigned_alert_body FROM '.EMAIL_TEMPLATE_TABLE.
' WHERE cfg_id='.db_input($cfg->getId()).' AND tpl_id='.db_input($tplId);
if(($resp=db_query($sql)) && db_num_rows($resp) && list($subj,$body)=db_fetch_row($resp)){
$body=$this->replaceTemplateVars($body);
$subj=$this->replaceTemplateVars($subj);
$body = str_replace('%note',$message,$body);
$body = str_replace("%message", $message,$body); //Previous versions used message.
$body = str_replace("%assignee", $staff->getName(),$body);
$body = str_replace("%assigner", ($thisuser)?$thisuser->getName():'System',$body);
if(!($email=$cfg->getAlertEmail()))
$email=$cfg->getDefaultEmail();
if($email) {
$email->send($staff->getEmail(),$subj,$body);
}
}else {
Sys:(LOG_WARNING,'Template Fetch Error',"Unable to fetch 'assigned' alert template #$tplId");
}
}
$message=$message?$message:'Ticket assigned';
//Save the message as internal note...(record).
$this->postNote('Ticket Assigned to '.$staff->getName(),$message,false); //Notice that we are disabling note alerts!
return true;
}
return false;
}
In reference to bolded/orange mark section above, would commenting out the section turn off the ability to notify staff that a ticket was assigned?
Is there an easier way to stop Ticket Assignment notifications?
Is there a way to just send Ticket Assignment Notifications to the trash (/dev/null)?