Skip to content
Snippets Groups Projects
Commit a1d9983c authored by Prasad's avatar Prasad
Browse files

Merge branch '1708' into 'master'

Fixes #1708: Workflow email attachment compatibility fix.

Closes #1708

See merge request !1149
parents d12db41a e257755f
No related branches found
No related tags found
1 merge request!1149Fixes #1708: Workflow email attachment compatibility fix.
...@@ -157,7 +157,7 @@ class VTEmailTask extends VTTask{ ...@@ -157,7 +157,7 @@ class VTEmailTask extends VTTask{
//There can be multiple attachments for a single comment //There can be multiple attachments for a single comment
foreach($fileDetails as $fileDetail){ foreach($fileDetails as $fileDetail){
if(!empty($fileDetail)){ if(!empty($fileDetail)){
$path = $fileDetail['path'].$fileDetail['attachmentsid'].'_'.decode_html($fileDetail['name']); $path = $fileDetail['path'].$fileDetail['attachmentsid'].'_'.decode_html(!empty($fileDetail['storedname']) ? $fileDetail['storedname'] : $fileDetail['name']);
$mailerInstance->AddAttachment($path); $mailerInstance->AddAttachment($path);
} }
} }
......
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