[Tickets #1505] NEW: freebusyUrl is not found with multiple sources

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Mar 7 13:45:27 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1505
-----------------------------------------------------------------------
 Ticket             | 1505
 Created By         | gauret at free.fr
 Summary            | freebusyUrl is not found with multiple sources
 Queue              | Turba
 Version            | HEAD
 State              | Unconfirmed
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
+New Attachment     | api.php-multiplesources.patch
-----------------------------------------------------------------------


gauret at free.fr (2005-03-07 13:45) wrote:

I've setup a localsql address book and a sql-based shared address book in
turba (using separate turba_objects tables).
When searching for freebusy URLs, turba only looks in the first source : the
localsql address book. I found out why : on line 1070 of current CVS
(03/07), the sources list is taken from the cfgSources with the key()
function, which only returns one key. This function should be replaced by
array_keys(), which correctly returns all keys in the cfgSources array.
With array_keys, the freebusy URLs in the second source are correctly
returned.

The only tradeoff is that array_keys only exists in PHP > 4, but I think
that Horde already depends on it anyway.

Please see the attached patch to apply the change. Thanks




More information about the bugs mailing list