mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
Fix 'All contacts' filter; search for ID only actually returned ID + photo
This commit is contained in:
parent
6836518858
commit
928a71397d
@ -171,6 +171,12 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
||||
// $options['selection'] is array of identifiers as this plugin doesn't
|
||||
// support other selectors atm.
|
||||
foreach ($selection as $_contact) {
|
||||
if(is_array($_contact) && array_key_exists('photo', $_contact)) {
|
||||
unset($_contact['photo']);
|
||||
}
|
||||
if(is_array($_contact) && count($_contact) == 1 && $_contact['id']) {
|
||||
$_contact = $_contact['id'];
|
||||
}
|
||||
if(is_array($_contact) && $_contact['id']) {
|
||||
$contact = new addressbook_egw_record();
|
||||
$contact->set_record($_contact);
|
||||
|
Loading…
Reference in New Issue
Block a user