[Vtigercrm-commits] [vtiger-commits] r10363 - in /vtigercrm/branches/5.0.3/include/utils: ListViewUtils.php SearchUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 6 05:41:22 EST 2007
Author: saraj
Date: Tue Mar 6 03:41:15 2007
New Revision: 10363
Log:
fix for Search criteria failed in Product Advance Search and advance search is not working in Purchase Order. Fixes #3108 #3099 --Minnie
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 Tue Mar 6 03:41:15 2007
@@ -1778,8 +1778,10 @@
FROM vtiger_products
INNER JOIN vtiger_crmentity
ON vtiger_crmentity.crmid = vtiger_products.productid
- LEFT JOIN vtiger_productcf
+ INNER JOIN vtiger_productcf
ON vtiger_products.productid = vtiger_productcf.productid
+ LEFT JOIN vtiger_vendor
+ ON vtiger_vendor.vendorid = vtiger_products.vendor_id
WHERE vtiger_crmentity.deleted = 0 ".$where;
break;
Case "Notes":
@@ -1992,6 +1994,8 @@
ON vtiger_crmentity.crmid = vtiger_purchaseorder.purchaseorderid
LEFT OUTER JOIN vtiger_vendor
ON vtiger_purchaseorder.vendorid = vtiger_vendor.vendorid
+ LEFT JOIN vtiger_contactdetails
+ ON vtiger_purchaseorder.contactid = vtiger_contactdetails.contactid
INNER JOIN vtiger_pobillads
ON vtiger_purchaseorder.purchaseorderid = vtiger_pobillads.pobilladdressid
INNER JOIN vtiger_poshipads
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 Tue Mar 6 03:41:15 2007
@@ -16,8 +16,8 @@
require_once('include/ComboUtil.php'); //new
require_once('include/utils/CommonUtils.php'); //new
-$column_array=array('accountid','contact_id','product_id','campaignid','quoteid','vendorid','potentialid','salesorderid');
-$table_col_array=array('vtiger_account.accountname','vtiger_contactdetails.firstname,vtiger_contactdetails.lastname','vtiger_products.productname','vtiger_campaign.campaignname','vtiger_quotes.subject','vtiger_vendor.vendorname','vtiger_potential.potentialname','vtiger_salesorder.subject');
+$column_array=array('accountid','contact_id','product_id','campaignid','quoteid','vendorid','potentialid','salesorderid','vendor_id','contactid');
+$table_col_array=array('vtiger_account.accountname','vtiger_contactdetails.firstname,vtiger_contactdetails.lastname','vtiger_products.productname','vtiger_campaign.campaignname','vtiger_quotes.subject','vtiger_vendor.vendorname','vtiger_potential.potentialname','vtiger_salesorder.subject','vtiger_vendor.vendorname','vtiger_contactdetails.firstname,vtiger_contactdetails.lastname');
/**This function is used to get the list view header values in a list view during search
*Param $focus - module object
More information about the vtigercrm-commits
mailing list