mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 22:08:45 +01:00
Adjust custom date selection to include the full end date (export)
This commit is contained in:
parent
7cbc4949d3
commit
c23fee1092
@ -36,7 +36,7 @@ class calendar_export_csv implements importexport_iface_export_plugin {
|
||||
if($options['selection']['select'] == 'criteria') {
|
||||
$query = array(
|
||||
'start' => $options['selection']['start'],
|
||||
'end' => $options['selection']['end'],
|
||||
'end' => strtotime('+1 day',$options['selection']['end'])-1,
|
||||
'categories' => $options['categories'] ? $options['categories'] : $options['selection']['categories'],
|
||||
//'enum_recuring' => false, // we want the recurring events enumerated for csv export
|
||||
'daywise' => false,
|
||||
|
@ -38,9 +38,8 @@ class calendar_export_ical extends calendar_export_csv {
|
||||
if($options['selection']['select'] == 'criteria') {
|
||||
$query = array(
|
||||
'start' => $options['selection']['start'],
|
||||
'end' => $options['selection']['end'],
|
||||
'end' => strtotime('+1 day',$options['selection']['end'])-1,
|
||||
'categories' => $options['categories'] ? $options['categories'] : $options['selection']['categories'],
|
||||
'enum_recuring' => false,
|
||||
'daywise' => false,
|
||||
'users' => $options['selection']['owner'],
|
||||
'cfs' => $cfs // Otherwise we shouldn't get any custom fields
|
||||
|
@ -291,7 +291,7 @@ class calendar_uilist extends calendar_ui
|
||||
case 'custom':
|
||||
$GLOBALS['egw']->js->set_onload("set_style_by_class('table','custom_hide','visibility','visible');");
|
||||
$this->first = $search_params['start'] = $params['startdate'];
|
||||
$this->last = $search_params['end'] = $params['enddate'];
|
||||
$this->last = $search_params['end'] = strtotime('+1 day', $params['enddate'])-1;
|
||||
$label = $this->bo->long_date($this->first,$this->last);
|
||||
break;
|
||||
case 'fixed':
|
||||
|
Loading…
Reference in New Issue
Block a user