[Vtigercrm-commits] [vtiger-commits] r9104 - /vtigercrm/trunk/modules/Dashboard/HomepageDB.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Aug 24 01:29:35 EDT 2006
Author: richie
Date: Wed Aug 23 23:29:30 2006
New Revision: 9104
Log:
changes made to fix the dashboard issue --Minnie
Modified:
vtigercrm/trunk/modules/Dashboard/HomepageDB.php
Modified: vtigercrm/trunk/modules/Dashboard/HomepageDB.php
==============================================================================
--- vtigercrm/trunk/modules/Dashboard/HomepageDB.php (original)
+++ vtigercrm/trunk/modules/Dashboard/HomepageDB.php Wed Aug 23 23:29:30 2006
@@ -19,7 +19,8 @@
//if($is_admin)
// $homepagedb_query = "select vtiger_crmentity.* from vtiger_crmentity where vtiger_crmentity.setype in ('Accounts','Contacts','Leads','Potentials','Quotes','Invoice','PurchaseOrder','SalesOrder','Activities','HelpDesk','Campaigns') and vtiger_crmentity.deleted=0";
//else
- $homepagedb_query = "select vtiger_crmentity.* from vtiger_crmentity where vtiger_crmentity.setype in ('Accounts','Contacts','Leads','Potentials','Quotes','Invoice','PurchaseOrder','SalesOrder','Calendar','HelpDesk','Campaigns') and vtiger_crmentity.deleted=0 and vtiger_crmentity.smownerid=".$current_user->id;
+ $homepagedb_query = "select * from vtiger_crmentity se left join vtiger_leaddetails le on le.leadid=se.crmid where se.deleted=0 and (le.converted=0 or le.converted is null) and setype in ('Accounts','Contacts','Leads','Potentials','Quotes','Invoice','PurchaseOrder', 'SalesOrder','Calendar','HelpDesk','Campaigns') and se.deleted=0 and se.smownerid=".$current_user->id;
+ //$homepagedb_query = "select vtiger_crmentity.* from vtiger_crmentity where vtiger_crmentity.setype in ('Accounts','Contacts','Leads','Potentials','Quotes','Invoice','PurchaseOrder','SalesOrder','Calendar','HelpDesk','Campaigns') and vtiger_crmentity.deleted=0 and vtiger_crmentity.smownerid=".$current_user->id;
$graph_by="setype";
$graph_title=$mod_strings['recordsforuser'].' '.$current_user->user_name;
$module="Home";
More information about the vtigercrm-commits
mailing list