File: /include/class.ticket.php
Find: //Send Notice + Message to assignee.
$sql='SELECT assigned_alert_subj,assigned_alert_body FROM '.EMAIL_TEMPLATE_TABLE.
' WHERE cfg_id='.db_input($cfg->getId()).' AND tpl_id='.db_input($cfg->getDefaultTemplateId());
$resp=db_query($sql);
if(db_num_rows($resp) && list($subj,$body)=db_fetch_row($resp)){
$subj = str_replace("%ticket", $this->getExtId(),$subj);
$body = str_replace("%ticket", $this->getExtId(),$body);
$body = str_replace("%assignee", $staff->getName(),$body);
$body = str_replace("%assigner", $thisuser->getName(),$body);
$body = str_replace("%message", $message,$body);
$body = str_replace("%url", $cfg->getBaseUrl(),$body);
Misc:($staff->getEmail(),$subj,$body,$cfg->getAlertEmail());
}
}
And change that to:
//Send Notice + Message to assignee.
$sql='SELECT assigned_alert_subj,assigned_alert_body FROM '.EMAIL_TEMPLATE_TABLE.
' WHERE cfg_id='.db_input($cfg->getId()).' AND tpl_id='.db_input($cfg->getDefaultTemplateId());
$resp=db_query($sql);
if(db_num_rows($resp) && list($subj,$body)=db_fetch_row($resp)){
$subj = str_replace("%ticket", $this->getExtId(),$subj);
$subj = str_replace("%priority", $this->priority,$subj);
$body = str_replace("%ticket", $this->getExtId(),$body);
$body = str_replace("%assignee", $staff->getName(),$body);
$body = str_replace("%assigner", $thisuser->getName(),$body);
$body = str_replace("%message", $message,$body);
$body = str_replace("%url", $cfg->getBaseUrl(),$body);
Misc:($staff->getEmail(),$subj,$body,$cfg->getAlertEmail());
}
}
%priority will then work in the subject.