[Vtigercrm-commits] [vtiger-commits] r7122 - in /vtigercrm/trunk/modules/uploads: add2db.php downloadfile.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 15 07:05:31 EDT 2006


Author: don
Date: Thu Jun 15 05:05:27 2006
New Revision: 7122

Log:
prefixed vtiger_ in all table names

Modified:
    vtigercrm/trunk/modules/uploads/add2db.php
    vtigercrm/trunk/modules/uploads/downloadfile.php

Modified: vtigercrm/trunk/modules/uploads/add2db.php
==============================================================================
--- vtigercrm/trunk/modules/uploads/add2db.php (original)
+++ vtigercrm/trunk/modules/uploads/add2db.php Thu Jun 15 05:05:27 2006
@@ -53,7 +53,7 @@
 
 		if($filesize != 0)	
 		{
-			$current_id = $adb->getUniqueID("crmentity");
+			$current_id = $adb->getUniqueID("vtiger_crmentity");
 			$desc = $_REQUEST['txtDescription'];
 			$description = addslashes($desc);
 			$date_var = date('YmdHis');

Modified: vtigercrm/trunk/modules/uploads/downloadfile.php
==============================================================================
--- vtigercrm/trunk/modules/uploads/downloadfile.php (original)
+++ vtigercrm/trunk/modules/uploads/downloadfile.php Thu Jun 15 05:05:27 2006
@@ -20,7 +20,7 @@
 
 $returnmodule=$_REQUEST['return_module'];
 
-$dbQuery = "SELECT * FROM attachments WHERE attachmentsid = " .$attachmentsid ;
+$dbQuery = "SELECT * FROM vtiger_attachments WHERE attachmentsid = " .$attachmentsid ;
 
 $result = $adb->query($dbQuery) or die("Couldn't get file list");
 if($adb->num_rows($result) == 1)





More information about the vtigercrm-commits mailing list