From 2fe12757e0ca5148cccec03465ce4eec5469ab05 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 9 Jan 2017 15:00:44 +0100 Subject: [PATCH] * Calendar/Categrory report: Consider multidays events in over range calculation --- calendar/inc/class.calendar_category_report.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/calendar/inc/class.calendar_category_report.inc.php b/calendar/inc/class.calendar_category_report.inc.php index d18a5db22b..f1fa118773 100644 --- a/calendar/inc/class.calendar_category_report.inc.php +++ b/calendar/inc/class.calendar_category_report.inc.php @@ -139,6 +139,7 @@ class calendar_category_report extends calendar_ui{ $events_log[$user_id][$previous_week_number][$event['id']]['counted'])) { $events_log[$user_id][$week_number][$event['id']]['counted'] = true; + $events_log[$user_id][$week_number][$event['id']]['over_range'] = $is_over_range_event? true: false; } // In case of start range is in middle of multidays event, we need to calculate the // amount base on the part of event on the range and keep track of counting to avoid