Skip to content

Commit

Permalink
*Correctly* fix adding photo field to search.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 13, 2019
1 parent 43d923e commit a8cd302
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/Horde/Core/ActiveSync/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,12 @@ public function contacts_search($query, array $options = array())
} else {
$sources = array($gal);
$fields = array();
$return_fields = array(
$gal => array(
'name', 'alias', 'email', 'firstname', 'lastname',
'company', 'homePhone', 'workPhone', 'cellPhone', 'title',
'office')
);
$return_fields = array('name', 'alias', 'email', 'firstname', 'lastname',
'company', 'homePhone', 'workPhone', 'cellPhone', 'title',
'office');
}
if (!empty($options['pictures'])) {
$return_fields[$gal][] = 'photo';
$return_fields[] = 'photo';
}
$opts = array(
'matchBegin' => true,
Expand Down

0 comments on commit a8cd302

Please sign in to comment.