Skip to content
Snippets Groups Projects
Unverified Commit 5aa4c622 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4496 from aydreeihn/issue/open-canned-attachments

Creating Tickets with Attachments
parents 30d385d6 47920c49
Branches
Tags
No related merge requests found
...@@ -4134,10 +4134,14 @@ implements RestrictedAccess, Threadable, Searchable { ...@@ -4134,10 +4134,14 @@ implements RestrictedAccess, Threadable, Searchable {
$attachments = array(); $attachments = array();
$message = $ticket->getLastMessage(); $message = $ticket->getLastMessage();
if ($cfg->emailAttachments()) { if ($cfg->emailAttachments()) {
if ($message) if ($message && $message->getNumAttachments()) {
$attachments = $message->getAttachments(); foreach ($message->getNumAttachments() as $attachment)
if ($response && $response->getNumAttachments()) $attachments[] = $attachment;
$attachments = $attachments->merge($response->getAttachments()); }
if ($response && $response->getNumAttachments()) {
foreach ($response->getAttachments() as $attachment)
$attachments[] = $attachment;
}
} }
if ($vars['signature']=='mine') if ($vars['signature']=='mine')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment