[Vtigercrm-commits] [vtiger-commits] r11108 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 28 16:51:22 EDT 2007
Author: saraj
Date: Mon May 28 14:51:18 2007
New Revision: 11108
Log:
inventory manager search issue fixed
Modified:
vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
Modified: vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/SearchUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/SearchUtils.php Mon May 28 14:51:18 2007
@@ -360,8 +360,11 @@
$table_name = "vtiger_contactdetails2";
$column_name = "lastname";
}
-
-
+ if($column_name == "inventorymanager" && $module = "Quotes")
+ {
+ $table_name = "vtiger_usersQuotes";
+ $column_name = "user_name";
+ }
//Added to support user date format in basic search
if($uitype == 5 || $uitype == 6 || $uitype == 23 || $uitype == 70)
{
@@ -495,8 +498,8 @@
$block = $adb->query_result($result,$i,"block");
$fieldtype = $adb->query_result($result,$i,"typeofdata");
$fieldtype = explode("~",$fieldtype);
- $fieldtypeofdata = $fieldtype[0];
- if($fieldcolname == 'account_id' || $fieldcolname == 'accountid' || $fieldcolname == 'product_id' || $fieldcolname == 'vendor_id' || $fieldcolname == 'contact_id' || $fieldcolname == 'contactid' || $fieldcolname == 'vendorid' || $fieldcolname == 'potentialid' || $fieldcolname == 'salesorderid' || $fieldcolname == 'quoteid' || $fieldcolname == 'parentid' || $fieldcolname == "recurringtype")
+ $fieldtypeofdata = $fieldtype[0];
+ if($fieldcolname == 'account_id' || $fieldcolname == 'accountid' || $fieldcolname == 'product_id' || $fieldcolname == 'vendor_id' || $fieldcolname == 'contact_id' || $fieldcolname == 'contactid' || $fieldcolname == 'vendorid' || $fieldcolname == 'potentialid' || $fieldcolname == 'salesorderid' || $fieldcolname == 'quoteid' || $fieldcolname == 'parentid' || $fieldcolname == "recurringtype" || $fieldcolname == "campaignid" || $fieldcolname == "inventorymanager")
$fieldtypeofdata = "V";
$fieldlabel = $mod_strings[$adb->query_result($result,$i,"fieldlabel")];
More information about the vtigercrm-commits
mailing list