On Wed, 10 Mar 2010 08:25:22 -0600, Ryan Horrisberger rhorrisb@ssc.wisc.edu wrote:
RCers-
I can't seem to get the auto-complete to display the address books in
the
order desired. That is to say I want an address in my personal address book to appear at the top of the autocomplete list rather than at the bottom.
I am using RC 0.3.1, and have two address books defined, plus the 'automatic_addressbook', plugin but I've verified I have the same
problem
even with no plugins enabled.
My LDAP address book is called 'People'
// An ordered array of the ids of the addressbooks that should be
searched
// when populating address autocomplete fields server-side. $rcmail_config['autocomplete_addressbooks'] = array('sql', 'People');
With the above config an address in 'sql' will always appear on the auto-complete list of 15, but at the bottom of the list. When I switch
the
order of 'sql' and 'People' the address from 'sql' won't appear until
every
address in 'People' is excluded.
Thus it appears to be working partially correctly. It searches
correctly
making sure if the address is in 'sql' it will always be on the auto-complete list, but it always shows up at the bottom of the list
rather
than the top, which not the desired behavior. An address book which is configured to be searched first should also be displayed first.
What am I doing wrong? Or is this a RC issue? I've searched any can't find any tickets on this issue.
Thanks,
--
I can't speak to whether your issue is correctable or not, but I can say that I've implemented our similar address books a bit differently to get around things like this.
We have personal books set to 'sql', and a medium-large (~2000 users) LDAP book named Global. I have only the sql book in the autocomplete config, and added the Global book to the compose_addressbook plugin, which adds an addressbook button to the compose window/page. In this way, autocomplete ONLY pulls from the personal SQL, but anyone in the Global book can be looked up and added easily as needed.