[Tickets #5502] Sorting address book search results

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Jun 26 19:56:45 UTC 2007


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

Ticket URL: http://bugs.horde.org/ticket/?id=5502
-----------------------------------------------------------------------
 Ticket             | 5502
 Created By         | brana at ualberta.ca
 Summary            | Sorting address book search results
 Queue              | Turba
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


brana at ualberta.ca (2007-06-26 12:56) wrote:

Horde: 3.1.4
Imp: H3 (4.1.4)
Turba: H3 (2.1.4)

Hello.

When doing an address book search the results are sometimes not sorted
properly. If the user has set the name_format option in the address book
settings to be 'last_first' then a search on a last name (eg:
'macdougall') is not ordered, but a search on a first name (eg: 'william')
is sorted.

I made a minor change to the following files which fixes the sorting
problem, but I'm not sure if this is the best solution:

horde/turba/search.php
horde/turba/lib/api.php

# diff search.php.bak search.php
68c68
<                     ? (($prefs->getValue('name_format') ==
'first_last')
---
>                   ? ($prefs->getValue('name_format')

# diff api.php.bak api.php
894c894
<             ? (($prefs->getValue('name_format') == 'first_last')
---
>           ? ($prefs->getValue('name_format')

--
Babita Rana



More information about the bugs mailing list