Guys
If a ticket is re-opened currently the ticket reopens without letting the user know by an alert, does any one know how to do this, I assume in Class.ticket under Function Reopen ?
Something like this below, snipped from a simalar fucntion
$sql='SELECT message_autoresp_subj,message_autoresp_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('%signature',($dept && $dept->isPublic())?$dept->getSignature():'',$body);
//Reply separator tag.
if($cfg->stripQuotedReply() && ($tag=$cfg->getReplySeparator()))
$body ="\n$tag\n\n".$body;
if(!$dept || !($email=$dept->getAutoRespEmail()))
$email=$cfg->getDefaultEmail();
if($email) {
$email->send($this->getEMail(),$subj,$body);
}
}else {
Sys:(LOG_WARNING,'Template Fetch Error',"Unable to fetch 'new message' auto response template #$tplId");
}
}
Any Help would be great, thanks