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
@ -84,7 +84,7 @@ class calendar_export_csv implements importexport_iface_export_plugin {
|
|||||||
if($states['view'] == 'listview')
|
if($states['view'] == 'listview')
|
||||||
{
|
{
|
||||||
$ui->get_rows($query, $events, $unused);
|
$ui->get_rows($query, $events, $unused);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$query['filter'] = 'custom';
|
$query['filter'] = 'custom';
|
||||||
@ -147,7 +147,15 @@ class calendar_export_csv implements importexport_iface_export_plugin {
|
|||||||
// Add in participants
|
// Add in participants
|
||||||
if($options['mapping']['participants'])
|
if($options['mapping']['participants'])
|
||||||
{
|
{
|
||||||
$event['participants'] = implode(", ",$this->bo->participants($event,true));
|
if(is_array($event['participants']))
|
||||||
|
{
|
||||||
|
$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))
|
||||||
{
|
{
|
||||||
@ -229,10 +237,10 @@ class calendar_export_csv implements importexport_iface_export_plugin {
|
|||||||
{
|
{
|
||||||
$states = $this->bo->cal_prefs['saved_states'];
|
$states = $this->bo->cal_prefs['saved_states'];
|
||||||
$list = Api\Cache::getSession('calendar', 'calendar_list');
|
$list = Api\Cache::getSession('calendar', 'calendar_list');
|
||||||
|
|
||||||
$start= new Api\DateTime($list['startdate']);
|
$start= new Api\DateTime($list['startdate']);
|
||||||
$end = new Api\DateTime($list['enddate']);
|
$end = new Api\DateTime($list['enddate']);
|
||||||
|
|
||||||
if ($states['view'] == 'listview')
|
if ($states['view'] == 'listview')
|
||||||
{
|
{
|
||||||
$list = Api\Cache::getSession('calendar', 'calendar_list');
|
$list = Api\Cache::getSession('calendar', 'calendar_list');
|
||||||
|
Loading…
Reference in New Issue
Block a user