[Vtigercrm-commits] [vtiger-commits] r5881 - /vtigercrm/trunk/modules/Calendar/Calendar.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu May 11 09:53:54 EDT 2006


Author: saraj
Date: Thu May 11 07:53:51 2006
New Revision: 5881

Log:
changes made for new calendar functionality

Modified:
    vtigercrm/trunk/modules/Calendar/Calendar.php

Modified: vtigercrm/trunk/modules/Calendar/Calendar.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/Calendar.php (original)
+++ vtigercrm/trunk/modules/Calendar/Calendar.php Thu May 11 07:53:51 2006
@@ -127,15 +127,18 @@
 	{
 		if ( $this->view == 'week')
 		{
+			$start_datetime = $this->date_time->getThisweekDaysbyIndex(0);
 			$end_datetime = $this->date_time->get_first_day_of_changed_week('increment');
                 } elseif($this->view == 'month') {
+			$start_datetime = $this->date_time->getThismonthDaysbyIndex(0);
 			$end_datetime = $this->date_time->get_first_day_of_changed_month('increment');
 		} else {
+			$start_datetime = $this->date_time;
                         $end_datetime = $this->date_time->get_changed_day('increment');
                 }
 		
 		$activities = Array();
-		$activities = Appointment::readAppointment($current_user->id,$this->date_time,$end_datetime,$this->view);
+		$activities = Appointment::readAppointment($current_user->id,$start_datetime,$end_datetime,$this->view);
 		
 		if(!empty($activities))
 		{





More information about the vtigercrm-commits mailing list