Skip to content
Snippets Groups Projects
Commit cf547c73 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #213 from greezybacon/feature/ticket-notice-response

templates: Add ${response} to ticket notice
parents 27e00927 0b8d6129
No related branches found
No related tags found
No related merge requests found
...@@ -2227,8 +2227,11 @@ class Ticket { ...@@ -2227,8 +2227,11 @@ class Ticket {
$attachments =($cfg->emailAttachments() && $response)?$response->getAttachments():array(); $attachments =($cfg->emailAttachments() && $response)?$response->getAttachments():array();
$msg = $ticket->replaceVars($msg->asArray(), $msg = $ticket->replaceVars($msg->asArray(), array(
array('message' => $message, 'signature' => $signature)); 'message' => $message,
'signature' => $signature,
'response' => $response->getBody(),
));
if($cfg->stripQuotedReply() && ($tag=trim($cfg->getReplySeparator()))) if($cfg->stripQuotedReply() && ($tag=trim($cfg->getReplySeparator())))
$msg['body'] = "<p style=\"display:none\">$tag<p>".$msg['body']; $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.
Finish editing this message first!
Please register or to comment