Skip to content
Snippets Groups Projects
Commit ea58dff8 authored by Martin Allen's avatar Martin Allen
Browse files

using correct file name when attaching file to Email

parent 86cbaacb
No related branches found
Tags 7.2.0
No related merge requests found
......@@ -157,7 +157,7 @@ class VTEmailTask extends VTTask{
//There can be multiple attachments for a single comment
foreach($fileDetails as $fileDetail){
if(!empty($fileDetail)){
$path = $fileDetail['path'].$fileDetail['attachmentsid'].'_'.decode_html($fileDetail['name']);
$path = $fileDetail['path'].$fileDetail['attachmentsid'].'_'.decode_html($fileDetail['storedname']);
$mailerInstance->AddAttachment($path);
}
}
......@@ -434,4 +434,4 @@ class VTEmailTask extends VTTask{
}
}
}
}
\ No newline at end of file
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