[Vtigercrm-commits] [vtiger-commits] r10800 - in /vtigercrm/branches/5.0.3/modules/Dashboard: Entity_charts.php index.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 27 10:26:57 EDT 2007


Author: richie
Date: Fri Apr 27 08:26:51 2007
New Revision: 10800

Log:
* Fixed the issues in Dashboard, Fixed #3478

Modified:
    vtigercrm/branches/5.0.3/modules/Dashboard/Entity_charts.php
    vtigercrm/branches/5.0.3/modules/Dashboard/index.php

Modified: vtigercrm/branches/5.0.3/modules/Dashboard/Entity_charts.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Dashboard/Entity_charts.php (original)
+++ vtigercrm/branches/5.0.3/modules/Dashboard/Entity_charts.php Fri Apr 27 08:26:51 2007
@@ -282,7 +282,7 @@
 
 					if($graph_for == "accountid") $graph_for = "account_id";
 					if($module == "Home")
-						$link_val="index.php?module=".$name."&action=ListView&from_homepagedb=true&type=dbrd&query=true&owner=".$current_user->user_name;
+						$link_val="index.php?module=".$name."&action=ListView&from_homepagedb=true&search_field=assigned_user_id&searchtype=BasicSearch&query=true&type=entchar&search_text=".$current_user->user_name;
 					else
 						$link_val="index.php?module=".$module."&action=index&from_dashboard=true&search_text=".$name."&search_field=".$graph_for."&searchtype=BasicSearch&query=true&type=entchar";
 
@@ -383,9 +383,9 @@
 function get_graph_by_type($graph_by,$graph_title,$module,$where,$query,$width=900,$height=500)
 {
 	global $user_id,$date_start,$end_date,$type,$mod_strings;
-
+	$time = time();
 	//Giving the Cached image name
-	$cache_file_name=abs(crc32($user_id))."_".$type."_".crc32($date_start.$end_date).".png";
+	$cache_file_name=abs(crc32($user_id))."_".$type."_".crc32($date_start.$end_date).$time.".png";
 	$html_imagename=$graph_by; //Html image name for the graph
 
 	$graph_details=module_Chart($user_id,$date_start,$end_date,$query,$graph_by,$graph_title,$where,$module,$type);

Modified: vtigercrm/branches/5.0.3/modules/Dashboard/index.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Dashboard/index.php (original)
+++ vtigercrm/branches/5.0.3/modules/Dashboard/index.php Fri Apr 27 08:26:51 2007
@@ -355,6 +355,7 @@
 			onComplete: function(response)
 			{
 				$("dashChart").innerHTML=response.responseText;
+				$("dashChart").style.display='none';
 				Effect.Appear("dashChart");
 				var dashst = document.getElementById('dash_script');
 				eval(dashst.innerHTML);
@@ -369,6 +370,8 @@
 	gdash_displaytype = displaytype;
 	var oCombo = $('dashboard_combo');
 	var type = oCombo.options[oCombo.selectedIndex].value; 
+	var currenttime = new Date();
+	var time="&time="+currenttime.getTime();
 	if(type == 'DashboardHome')
 	{
 		if(displaytype == 'MATRIX')
@@ -383,7 +386,7 @@
 		else
 			url = 'index.php?module=Dashboard&action=index&display_view=NORMAL&type='+type;
 	}
-	window.document.location.href = url;
+	window.document.location.href = url+time;
 
 }
 </script>





More information about the vtigercrm-commits mailing list