From cb63e747ebc289020cde7ef03413864820d3bb3f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 11 Jan 2017 10:36:14 +0100 Subject: [PATCH] Do the same for week_days count as commit bb9bf40edbf3f67fc2973f29d84e37085ec54b77 --- calendar/inc/class.calendar_category_report.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calendar/inc/class.calendar_category_report.inc.php b/calendar/inc/class.calendar_category_report.inc.php index dd8e2ebcac..c24587f6b1 100644 --- a/calendar/inc/class.calendar_category_report.inc.php +++ b/calendar/inc/class.calendar_category_report.inc.php @@ -334,6 +334,9 @@ class calendar_category_report extends calendar_ui{ $min_days_output[$user_id][$cat_id]['amount'] = $min_days_output[$user_id][$cat_id]['amount'] + (count($days) >= (int)$events['min_days']?self::add_days($days):0); + $min_days_output[$user_id][$cat_id]['days'] = + $min_days_output[$user_id][$cat_id]['days'] + + (count($days) >= (int)$events['min_days']?count($days):0); } } }