Skip to content
Snippets Groups Projects

Fixes: 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

Merged madhu sr requested to merge madhu.sr/vtigercrm:158428588 into master
@@ -32,8 +32,10 @@ class Inventory_SendEmail_View extends Vtiger_ComposeEmail_View {
'attachment' =>$fileName,
'path' => implode('/',$fileComponents),
'size' => filesize($pdfFileName),
'type' => 'pdf',
'nondeletable' => true
'type' => 'pdf',
'nondeletable' => true,
// The stored name is needed to send the file with the email.
'storedname' => $fileName
));
$this->populateTo($request);
Loading