[Vtigercrm-commits] [vtiger-commits] r7113 - /vtigercrm/trunk/modules/Settings/UpdateComboValues.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 15 05:40:56 EDT 2006


Author: don
Date: Thu Jun 15 03:40:52 2006
New Revision: 7113

Log:
prefixed vtiger_ in all table names

Modified:
    vtigercrm/trunk/modules/Settings/UpdateComboValues.php

Modified: vtigercrm/trunk/modules/Settings/UpdateComboValues.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/UpdateComboValues.php (original)
+++ vtigercrm/trunk/modules/Settings/UpdateComboValues.php Thu Jun 15 03:40:52 2006
@@ -14,7 +14,7 @@
 $fldPickList =  $_REQUEST['listarea'];
 
 //Deleting the already existing values
-$delquery="delete from ".$tableName;
+$delquery="delete from vtiger_".$tableName;
 $adb->query($delquery);
 
 $pickArray = explode("\n",$fldPickList);
@@ -31,9 +31,9 @@
 	if($pickArray[$i] != '')
 	{
 		if($custom)
-			$query = "insert into ".$tableName." values('".$pickArray[$i]."')";
+			$query = "insert into vtiger_".$tableName." values('".$pickArray[$i]."')";
 		else
-			$query = "insert into ".$tableName." values('','".$pickArray[$i]."',".$i.",1)";
+			$query = "insert into vtiger_".$tableName." values('','".$pickArray[$i]."',".$i.",1)";
         $adb->query($query);
 	}
 }





More information about the vtigercrm-commits mailing list