mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 00:49:04 +01:00
* Calendar - Fix exporting CSV from search results exported owner as participants
This commit is contained in:
parent
3e7ecbe692
commit
d76f467f94
@ -146,9 +146,17 @@ class calendar_export_csv implements importexport_iface_export_plugin {
|
|||||||
//if($options['selection']['select'] == 'criteria' && ($event['start'] > $query['end'] || $event['end'] < $query['start'])) continue;
|
//if($options['selection']['select'] == 'criteria' && ($event['start'] > $query['end'] || $event['end'] < $query['start'])) continue;
|
||||||
// Add in participants
|
// Add in participants
|
||||||
if($options['mapping']['participants'])
|
if($options['mapping']['participants'])
|
||||||
|
{
|
||||||
|
if(is_array($event['participants']))
|
||||||
{
|
{
|
||||||
$event['participants'] = implode(", ",$this->bo->participants($event,true));
|
$event['participants'] = implode(", ",$this->bo->participants($event,true));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Getting results from list already has participants formatted
|
||||||
|
$event['participants'] = str_replace("\n", ' ', $event['participants']);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (is_array($event))
|
if (is_array($event))
|
||||||
{
|
{
|
||||||
$record->set_record($event);
|
$record->set_record($event);
|
||||||
|
Loading…
Reference in New Issue
Block a user