[Tickets #6313] Addressbook list not shown
bugs at horde.org
bugs at horde.org
Sun Feb 24 18:52:10 UTC 2008
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=6313
-----------------------------------------------------------------------
Ticket | 6313
Created By | thomas.jarosch at intra2net.com
Summary | Addressbook list not shown
Queue | Turba
Version | HEAD
Type | Bug
State | Unconfirmed
Priority | 1. Low
Milestone |
Patch |
Owners |
+New Attachment | turba-fix-addressbook-list.patch
-----------------------------------------------------------------------
thomas.jarosch at intra2net.com (2008-02-24 13:52) wrote:
Hello together,
I did a fresh CVS checkout to test the current state
of the Kolab driver again. I had trouble getting the
list of addressbooks in Turba. Here's why:
Turba gets a list of addressbooks via
"$addressbooks = Turba::listShares(true);".
After that the names get sorted:
foreach ($addressbooks as $addressbook) {
$sorted_addressbooks[$addressbook->getName()] =
$addressbook->get('name');
}
asort($sorted_addressbooks);
Using the Kolab share driver the data was lay out like this:
$addressbook["INBOX%2FKontakte"]:
$addressbook->getName() = "INBOX/Kontakte";
$addressbook->get('name') = "Kontakte";
Because of the HTML escaping in the key of the array, Turba was unable
to find the addressbooks again when it tried to display the list.
Attached patch uses the real key of $addressbooks.
Cheers,
Thomas
More information about the bugs
mailing list