[Vtigercrm-commits] [vtiger-commits] r7012 - in /vtigercrm/trunk: include/utils/SearchUtils.php modules/Dashboard/Entity_charts.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 13 03:05:01 EDT 2006


Author: saraj
Date: Tue Jun 13 01:04:55 2006
New Revision: 7012

Log:
changes made to show proper records from dashboard

Modified:
    vtigercrm/trunk/include/utils/SearchUtils.php
    vtigercrm/trunk/modules/Dashboard/Entity_charts.php

Modified: vtigercrm/trunk/include/utils/SearchUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/SearchUtils.php (original)
+++ vtigercrm/trunk/include/utils/SearchUtils.php Tue Jun 13 01:04:55 2006
@@ -357,6 +357,12 @@
 			}
 		}
 	}
+	if($_REQUEST['type'] == 'entchar')
+	{
+		$search = array('Un Assigned','%','like');
+		$replace = array('','','=');
+		$where= str_replace($search,$replace,$where);
+	}
 	$log->debug("Exiting BasicSearch method ...");
 	return $where;
 }

Modified: vtigercrm/trunk/modules/Dashboard/Entity_charts.php
==============================================================================
--- vtigercrm/trunk/modules/Dashboard/Entity_charts.php (original)
+++ vtigercrm/trunk/modules/Dashboard/Entity_charts.php Tue Jun 13 01:04:55 2006
@@ -213,7 +213,7 @@
 
 					if($graph_for == "accountid") $graph_for = "account_id";
 					
-					$link_val="index.php?module=".$module."&action=index&search_text=".$name."&search_field=".$graph_for."&searchtype=BasicSearch&query=true";
+					$link_val="index.php?module=".$module."&action=index&search_text=".$name."&search_field=".$graph_for."&searchtype=BasicSearch&query=true&type=entchar";
 
 					if($graph_for == "account_id") $graph_for = "accountid";
 





More information about the vtigercrm-commits mailing list