Bug #239474 --> Fix thunderbird regression preventing LDAP searches from working in the address book.

This commit is contained in:
scott%scott-macgregor.org 2004-04-29 02:09:47 +00:00
Родитель d08393bd2d
Коммит b7bdae264e
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -149,6 +149,12 @@ function delayedOnLoadAddressBook()
InitCommonJS();
//This migrates the LDAPServer Preferences from 4.x to mozilla format.
try {
gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"].getService();
gLDAPPrefsService = gLDAPPrefsService.QueryInterface( Components.interfaces.nsILDAPPrefsService);
} catch (ex) {dump ("ERROR: Cannot get the LDAP service\n" + ex + "\n");}
GetCurrentPrefs();
AddPrefObservers();
@ -635,7 +641,7 @@ function onEnterInSearchBar()
searchURI += gQueryURIFormat.replace(/@V/g, encodeURIComponent(gSearchInput.value));
}
SetAbView(searchURI, sortColumn, sortDirection);
SetAbView(searchURI, gSearchInput.value != "", sortColumn, sortDirection);
// XXX todo
// this works for synchronous searches of local addressbooks,