[Vtigercrm-commits] [vtiger-commits] r4814 - /vtigercrm/trunk/include/utils/DetailViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Mar 31 03:34:28 EST 2006
Author: saraj
Date: Fri Mar 31 01:34:18 2006
New Revision: 4814
Log:
* Modified to display the original file name in the detailview and removed the unwanted parameters passing to download link
Modified:
vtigercrm/trunk/include/utils/DetailViewUtils.php
Modified: vtigercrm/trunk/include/utils/DetailViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/DetailViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/DetailViewUtils.php Fri Mar 31 01:34:18 2006
@@ -253,7 +253,10 @@
$attachquery = "select * from attachments where attachmentsid=".$attachmentid;
$col_fields[$fieldname] = $adb->query_result($adb->query($attachquery),0,'name');
}
- $custfldval = '<a href = "index.php?module=uploads&action=downloadfile&return_module='.$col_fields['record_module'].'&fileid='.$attachmentid.'&filename='.$col_fields[$fieldname].'">'.$col_fields[$fieldname].'</a>';
+
+ //This is added to strip the crmid and _ from the file name and show the original filename
+ $org_filename = ltrim($col_fields[$fieldname],$col_fields['record_id'].'_');
+ $custfldval = '<a href = "index.php?module=uploads&action=downloadfile&return_module='.$col_fields['record_module'].'&fileid='.$attachmentid.'&entityid='.$col_fields['record_id'].'">'.$org_filename.'</a>';
$label_fld[] =$mod_strings[$fieldlabel];
More information about the vtigercrm-commits
mailing list