[Vtigercrm-commits] [vtiger-commits] r6359 - /vtigercrm/trunk/modules/Calendar/CalendarAjax.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 24 10:51:08 EDT 2006
Author: saraj
Date: Wed May 24 08:51:04 2006
New Revision: 6359
Log:
changes made to display event in minicalendar
Modified:
vtigercrm/trunk/modules/Calendar/CalendarAjax.php
Modified: vtigercrm/trunk/modules/Calendar/CalendarAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/CalendarAjax.php (original)
+++ vtigercrm/trunk/modules/Calendar/CalendarAjax.php Wed May 24 08:51:04 2006
@@ -8,7 +8,7 @@
* All Rights Reserved.
*
********************************************************************************/
-global $theme,$mod_strings,$current_language,$currentModule;
+global $theme,$mod_strings,$current_language,$currentModule,$current_user;
$theme_path = "themes/".$theme."/";
$image_path = $theme_path."images/";
require_once($theme_path."layout_utils.php");
@@ -27,6 +27,7 @@
$calendar_arr['calendar'] = new Calendar('month');
$calendar_arr['view'] = 'month';
$calendar_arr['size'] = 'small';
+ $calendar_arr['calendar']->add_Activities($current_user);
calendar_layout($calendar_arr);
$mod_strings = return_module_language($current_language,$temp_module);
$currentModule = $_REQUEST['module'];
@@ -66,9 +67,8 @@
$date_data['year'] = $_REQUEST['year'];
}
$calendar_arr['calendar'] = new Calendar($mysel,$date_data);
- if ($mysel == 'day' || $mysel == 'week' || $mysel == 'month')
+ if ($mysel == 'day' || $mysel == 'week' || $mysel == 'month' || $mysel == 'year')
{
- global $current_user;
$calendar_arr['calendar']->add_Activities($current_user);
}
$calendar_arr['view'] = $mysel;
More information about the vtigercrm-commits
mailing list