mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Import/export: Fix comma separated group IDs were not properly converted to user-friendly. Only the first ID was listed.
This commit is contained in:
parent
25ff5fe490
commit
dca7023c2a
@ -410,7 +410,8 @@ class importexport_export_csv implements importexport_iface_export_record
|
|||||||
if ($record->$name !== null)
|
if ($record->$name !== null)
|
||||||
{
|
{
|
||||||
$names = array();
|
$names = array();
|
||||||
foreach((array)$record->$name as $_name) {
|
foreach(is_array($record->$name) ? $record->$name : explode(',', $record->$name) as $_name)
|
||||||
|
{
|
||||||
$names[] = Api\Accounts::title((int)$_name ?: $_name);
|
$names[] = Api\Accounts::title((int)$_name ?: $_name);
|
||||||
}
|
}
|
||||||
$record->$name = implode(', ', $names);
|
$record->$name = implode(', ', $names);
|
||||||
|
Loading…
Reference in New Issue
Block a user