Skip to content
Snippets Groups Projects
Commit 4d08d75d authored by Peter Rotich's avatar Peter Rotich
Browse files

Add %{recipient} and %{staff} variables to new ticket by staff scope

parent a7cdec44
No related branches found
No related tags found
No related merge requests found
......@@ -2433,11 +2433,15 @@ class Ticket {
$attachments =($cfg->emailAttachments() && $response)?$response->getAttachments():array();
$msg = $ticket->replaceVars($msg->asArray(), array(
'message' => $message,
'signature' => $signature,
'response' => ($response) ? $response->getBody() : '',
));
$msg = $ticket->replaceVars($msg->asArray(),
array(
'message' => $message,
'signature' => $signature,
'response' => ($response) ? $response->getBody() : '',
'recipient' => $ticket->getOwner(), //End user
'staff' => $thisstaff,
)
);
if($cfg->stripQuotedReply() && ($tag=trim($cfg->getReplySeparator())))
$msg['body'] = "<p style=\"display:none\">$tag<p>".$msg['body'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment