Skip to content
Snippets Groups Projects
Commit 6c111956 authored by madhu sr's avatar madhu sr
Browse files

#Fixes::158428588::madhusr::PDF attachment is not sending when we click on the...

#Fixes::158428588::madhusr::PDF attachment is not sending when we click on the 'send email as attachment'
parent 58f6ef53
No related branches found
No related tags found
1 merge request!1055Fixes: Added the storedname key value to the attachment details of the inventory modules which we use to get the filedetails when sending the mail with pdf
......@@ -196,8 +196,12 @@ class Emails_MassSaveAjax_View extends Vtiger_Footer_View {
* Ex: for PDF: if filename - abc_md5(abc).pdf then raw filename - abc.pdf
* For Normal documents: rawFileName is not exist in the attachments info. So it fallback to normal filename
*/
$rawFileName = $existingAttachInfo['attachment'];
$rawFileName = $existingAttachInfo['storedname'];
$file_name = $existingAttachInfo['storedname'];
if(!$rawFileName) {
$rawFileName = $existingAttachInfo['attachment'];
$file_name = $existingAttachInfo['attachment'];
}
$path = $existingAttachInfo['path'];
$fileId = $existingAttachInfo['fileid'];
......
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