[Tickets #11808] Activesync access to GAL from device
bugs at horde.org
bugs at horde.org
Mon Dec 3 18:12:24 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/11808
------------------------------------------------------------------------------
Ticket | 11808
Created By | horde at albasoft.com
Summary | Activesync access to GAL from device
Queue | Synchronization
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone |
Patch | 1
Owners |
------------------------------------------------------------------------------
horde at albasoft.com (2012-12-03 18:12) wrote:
I can't access gal from an iPhone.
I get no error, but every search returns no results.
Searching the code, I've found that maybe there are some problems
accessing to GLOBAL vars.
These changes at Horde/Core/ActiveSync/Connector.php solved the problem:
--- pear/php/Horde/Core/ActiveSync/Connector.php.ori 2012-12-03
19:10:13.190379525 +0100
+++ pear/php/Horde/Core/ActiveSync/Connector.php 2012-12-03
19:10:47.109137698 +0100
@@ -298,13 +298,14 @@
*/
public function contacts_search($query)
{
- if (!empty($GLOBALS['conf']['gal']['addressbook'])) {
- $fields = array($GLOBALS['conf']['gal']['addressbook'] =>
array('firstname', 'lastname', 'alias', 'name', 'email'));
+ $gal = $this->contacts_getGal();
+ if (!empty($gal)) {
+ $fields = array($gal => array('firstname', 'lastname',
'alias', 'name', 'email'));
$opts = array(
'fields' => $fields,
'matchBegin' => true,
'forceSource' => true,
- 'sources' => array($this->contacts_getGal())
+ 'sources' => array($gal)
);
return $this->_registry->contacts->search($query, $opts);
}
More information about the bugs
mailing list