diff --git a/modules/Emails/models/Record.php b/modules/Emails/models/Record.php index 5dedb8b4d01ef7616843e33c2e983ae92f678f68..06b8f878186e44d92f9eb850dbc6b91866e86f8b 100644 --- a/modules/Emails/models/Record.php +++ b/modules/Emails/models/Record.php @@ -330,6 +330,7 @@ class Emails_Record_Model extends Vtiger_Record_Model { $documentsList[$i]['path'] = $db->query_result($documentRes, $i, 'path'); $documentsList[$i]['fileid'] = $db->query_result($documentRes, $i, 'attachmentsid'); $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'); } }