[Vtigercrm-commits] [vtiger-commits] r7108 - /vtigercrm/trunk/modules/Settings/PickList.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 15 03:16:40 EDT 2006


Author: don
Date: Thu Jun 15 01:16:36 2006
New Revision: 7108

Log:
prefixed vtiger_ in all table names

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

Modified: vtigercrm/trunk/modules/Settings/PickList.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/PickList.php (original)
+++ vtigercrm/trunk/modules/Settings/PickList.php Thu Jun 15 01:16:36 2006
@@ -48,7 +48,7 @@
 	global $adb;
 	$user_fld = Array();
 	$tabid = getTabid($fldmodule);
-	$query = "select vtiger_fieldlabel,generatedtype,columnname,fieldname from vtiger_field where displaytype = 1 and (tabid = ".getTabid($fld_module)." AND uitype IN (15,16)) OR (tabid = ".getTabid($fld_module)." AND vtiger_fieldname='salutationtype')";
+	$query = "select fieldlabel,generatedtype,columnname,fieldname from vtiger_field where displaytype = 1 and (tabid = ".getTabid($fld_module)." AND uitype IN (15,16)) OR (tabid = ".getTabid($fld_module)." AND fieldname='salutationtype')";
 	$result = $adb->query($query);
 	$noofrows = $adb->num_rows($result);
     if($noofrows > 0)
@@ -115,7 +115,7 @@
 function getPickListModules()
 {
 	global $adb;
-	$query = 'select distinct vtiger_field.fieldname,vtiger_field.tabid,tablabel from vtiger_field inner join vtiger_tab on vtiger_tab.tabid=vtiger_field.tabid where uitype IN (15,16)';
+	$query = 'select distinct field.fieldname,vtiger_field.tabid,tablabel from vtiger_field inner join vtiger_tab on vtiger_tab.tabid=vtiger_field.tabid where uitype IN (15,16)';
 	$result = $adb->query($query);
 	while($row = $adb->fetch_array($result))
 	{





More information about the vtigercrm-commits mailing list