[Vtigercrm-commits] [vtiger-commits] r7639 - /vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 10:35:51 EDT 2006


Author: richie
Date: Wed Jun 28 08:35:37 2006
New Revision: 7639

Log:
Added vtiger_ in getUniqueID function parameter

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

Modified: vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php (original)
+++ vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php Wed Jun 28 08:35:37 2006
@@ -63,7 +63,7 @@
 {
 	if($_REQUEST['fieldid'] == '')
 	{
-		$max_fieldid = $adb->getUniqueID("field");
+		$max_fieldid = $adb->getUniqueID("vtiger_field");
 		$columnName = 'cf_'.$max_fieldid;
 	}
 	else
@@ -234,13 +234,13 @@
 	//retreiving the sequence
 	if($_REQUEST['fieldid'] == '')
 	{
-		$custfld_fieldid=$adb->getUniqueID("field");
+		$custfld_fieldid=$adb->getUniqueID("vtiger_field");
 	}
 	else
 	{
 		$custfld_fieldid= $_REQUEST['fieldid'];
 	}
-	$custfld_sequece=$adb->getUniqueId("customfield_sequence");
+	$custfld_sequece=$adb->getUniqueId("vtiger_customfield_sequence");
     	
 	$blockid ='';
         //get the blockid for this custom block
@@ -296,7 +296,7 @@
 			for($i = 0; $i < $count; $i++)
 			{
 				$pickArray[$i] = trim($pickArray[$i]);
-				$id = $adb->getUniqueID($columnName);
+				$id = $adb->getUniqueID('vtiger_'.$columnName);
 				if($pickArray[$i] != '')
 				{
 					$query = "insert into vtiger_".$columnName." values(".$id.",'".$pickArray[$i]."',".$i.",1)";





More information about the vtigercrm-commits mailing list