diff --git a/modules/Documents/models/Record.php b/modules/Documents/models/Record.php index 84b46ce7a68112990c88bd1906cbd6e6a8b75a0b..58080280cce843502823b933b21cac4f1c6d32af 100644 --- a/modules/Documents/models/Record.php +++ b/modules/Documents/models/Record.php @@ -21,7 +21,7 @@ class Documents_Record_Model extends Vtiger_Record_Model { function getDownloadFileURL($attachmentId = false) { if ($this->get('filelocationtype') == 'I') { $fileDetails = $this->getFileDetails(); - return 'index.php?module='. $this->getModuleName() .'&action=DownloadFile&record='. $this->getId() .'&fileid='. $fileDetails['attachmentsid'].'&name='. $fileDetails['name']; + return 'index.php?module='. $this->getModuleName() .'&action=DownloadFile&record='. $this->getId() .'&fileid='. $fileDetails['attachmentsid']; } else { return $this->get('filename'); }