From b5b1ffec656f7f19784b15bd00d285164414c01f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 10 Nov 2016 11:09:53 +0100 Subject: [PATCH] Add unit day for calendar category report --- calendar/inc/class.calendar_category_report.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_category_report.inc.php b/calendar/inc/class.calendar_category_report.inc.php index 3ad12593bf..829d041c92 100644 --- a/calendar/inc/class.calendar_category_report.inc.php +++ b/calendar/inc/class.calendar_category_report.inc.php @@ -291,7 +291,7 @@ class calendar_category_report extends calendar_ui{ // set header to download csv file header('Content-type: text/csv'); header('Content-Disposition: attachment; filename="report.csv"'); - + // iterate over csv rows for each user to print them out into csv file foreach ($result as $user_id => $userData) { @@ -315,6 +315,7 @@ class calendar_category_report extends calendar_ui{ // unit selectbox options $sel_options['unit'] = array ( + 86400 => array('label' => lang('day'), 'title'=>'Output value in day'), 3600 => array('label' => lang('hour'), 'title'=>'Output value in hour'), 60 => array('label' => lang('minute'), 'title'=>'Output value in minute'), 1 => array('label' => lang('second'), 'title'=>'Output value in second')