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

Fixing Documents not being sent as Email Attachments #1506

parent 7ca1cf10
No related branches found
No related tags found
No related merge requests found
......@@ -346,6 +346,7 @@ class Emails_Record_Model extends Vtiger_Record_Model {
$documentsList[$i]['attachment'] = decode_html($db->query_result($documentRes, $i, 'name'));
$documentsList[$i]['storedname'] = decode_html($db->query_result($documentRes, $i, 'storedname'));
$documentsList[$i]['type'] = $db->query_result($documentRes, $i, 'type');
$documentsList[$i]['filenamewithpath'] = $documentsList[$i]['path'].$documentsList[$i]['fileid'].'_'.$documentsList[$i]['storedname'];
}
}
return $documentsList;
......@@ -825,4 +826,4 @@ class Emails_Record_Model extends Vtiger_Record_Model {
}
return false;
}
}
}
\ 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