mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Get ical export working for scheduled export
This commit is contained in:
parent
5521f110ec
commit
15ecaec4f4
@ -28,9 +28,6 @@ class calendar_export_ical extends calendar_export_csv {
|
|||||||
|
|
||||||
// Custom fields need to be specifically requested
|
// Custom fields need to be specifically requested
|
||||||
$cfs = array();
|
$cfs = array();
|
||||||
foreach($options['mapping'] as $key => $label) {
|
|
||||||
if($key[0] == '#') $cfs[] = substr($key,1);
|
|
||||||
}
|
|
||||||
|
|
||||||
$limit_exception = bo_merge::is_export_limit_excepted();
|
$limit_exception = bo_merge::is_export_limit_excepted();
|
||||||
if (!$limit_exception) $export_limit = bo_merge::getExportLimit('calendar');
|
if (!$limit_exception) $export_limit = bo_merge::getExportLimit('calendar');
|
||||||
@ -51,7 +48,8 @@ class calendar_export_ical extends calendar_export_csv {
|
|||||||
}
|
}
|
||||||
$events =& $this->bo->search($query);
|
$events =& $this->bo->search($query);
|
||||||
}
|
}
|
||||||
elseif ($options['selection'] == 'search_results')
|
// Scheduled export will use 'all', which we don't allow through UI
|
||||||
|
elseif ($options['selection'] == 'search_results' || $options['selection'] == 'all')
|
||||||
{
|
{
|
||||||
$states = $GLOBALS['egw']->session->appsession('session_data','calendar');
|
$states = $GLOBALS['egw']->session->appsession('session_data','calendar');
|
||||||
if($states['view'] == 'listview')
|
if($states['view'] == 'listview')
|
||||||
|
Loading…
Reference in New Issue
Block a user