[Vtigercrm-commits] [vtiger-commits] r10441 - in /vtigercrm/branches/5.0.3/include/utils: ListViewUtils.php SearchUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 15 06:36:51 EDT 2007


Author: saraj
Date: Thu Mar 15 04:36:31 2007
New Revision: 10441

Log:
Problem in searching Inventory manager - fixed. Fixes #3176

Modified:
    vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
    vtigercrm/branches/5.0.3/include/utils/SearchUtils.php

Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Thu Mar 15 04:36:31 2007
@@ -1999,6 +1999,8 @@
 				ON vtiger_groups.groupname = vtiger_quotegrouprelation.groupname
 			LEFT JOIN vtiger_users
 				ON vtiger_users.id = vtiger_crmentity.smownerid
+			LEFT JOIN vtiger_users as vtiger_usersQuotes
+			        ON vtiger_usersQuotes.id = vtiger_quotes.inventorymanager
 			WHERE vtiger_crmentity.deleted = 0 ".$where;
 		if($is_admin==false && $profileGlobalPermission[1] == 1 && $profileGlobalPermission[2] == 1 && $defaultOrgSharingPermission[$tab_id] == 3)
 		{

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 Thu Mar 15 04:36:31 2007
@@ -433,6 +433,13 @@
 
 		}
 		$fieldlabel1 = str_replace(" ","_",$fieldlabel);
+		//Check added to search the lists by Inventory manager
+                if($fieldtablename == 'vtiger_quotes' && $fieldcolname == 'inventorymanager')
+                {
+                        $fieldtablename = 'vtiger_usersQuotes';
+                        $fieldcolname = 'user_name';
+                }
+
 		if($fieldlabel != 'Related to')
 		{
 			if ($i==0)





More information about the vtigercrm-commits mailing list