[Vtigercrm-commits] [vtiger-commits] r7600 - /vtigercrm/trunk/modules/Notes/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 04:03:08 EDT 2006
Author: saraj
Date: Wed Jun 28 02:03:04 2006
New Revision: 7600
Log:
updated the notes save file removing vtiger_ prefix from field name - ahmed
Modified:
vtigercrm/trunk/modules/Notes/Save.php
Modified: vtigercrm/trunk/modules/Notes/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Notes/Save.php (original)
+++ vtigercrm/trunk/modules/Notes/Save.php Wed Jun 28 02:03:04 2006
@@ -49,7 +49,7 @@
$attachmentid = $adb->query_result($result,0,'attachmentsid');
if($attachmentid != '')
{
- $attachquery = "select * from vtiger_attachments where vtiger_attachmentsid = ".$attachmentid;
+ $attachquery = "select * from vtiger_attachments where attachmentsid = ".$attachmentid;
$result = $adb->query($attachquery);
$filename = $adb->query_result($result,0,'name');
$filetype = $adb->query_result($result,0,'type');
@@ -59,7 +59,7 @@
$_FILES['filename']['type'] = $filetype;
//we should read the file and calculate the size, without setting vtiger_filesize, attachment will not save
- $filesize = vtiger_filesize($filepath.$filename);
+ $filesize = filesize($filepath.$filename);
$_FILES['filename']['size'] = $filesize;
}
}
More information about the vtigercrm-commits
mailing list