[Vtigercrm-commits] [vtiger-commits] r7829 - /vtigercrm/trunk/modules/Dashboard/HomepageDB.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jul 5 03:58:44 EDT 2006
Author: richie
Date: Wed Jul 5 01:58:40 2006
New Revision: 7829
Log:
query has been changed for home page dashboard
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 Jul 5 01:58:40 2006
@@ -14,9 +14,9 @@
global $current_user,$user_id,$date_start,$end_date,$tmp_dir,$mod_strings;
$type='recordsforuser';
if(!$is_admin)
- $homepagedb_query = "select vtiger_crmentity.* from vtiger_crmentity where vtiger_crmentity.smownerid=".$current_user->id;
+ $homepagedb_query = "select vtiger_crmentity.* from vtiger_crmentity where vtiger_crmentity.smownerid=".$current_user->id." and vtiger_crmentity.setype in ('Accounts','Contacts','Leads','Potentials','Products','Quotes','Invoice','PurchaseOrder','SalesOrder','Activities','HelpDesk','Campaigns')";
else
- $homepagedb_query = "select vtiger_crmentity.* from vtiger_crmentity";
+ $homepagedb_query = "select vtiger_crmentity.* from vtiger_crmentity where vtiger_crmentity.setype in ('Accounts','Contacts','Leads','Potentials','Products','Quotes','Invoice','PurchaseOrder','SalesOrder','Activities','HelpDesk','Campaigns')";
$graph_by="setype";
$graph_title=$mod_strings['recordsforuser'].' '.$current_user->user_name;
$module="Home";
More information about the vtigercrm-commits
mailing list