зеркало из https://github.com/mozilla/pjs.git
fix for #129955. LDAP search doesn't work if you don't have maxHits defined.
r=dmose,sr=mscott,a=shaver
This commit is contained in:
Родитель
a5be78e5e1
Коммит
69b1b826f6
|
@ -325,7 +325,8 @@ NS_IMETHODIMP nsAbLDAPDirectory::StartSearch ()
|
||||||
// turn moz-abldapdirectory://ldap_2.servers.nscpphonebook into -> "ldap_2.servers.nscpphonebook.maxHits"
|
// turn moz-abldapdirectory://ldap_2.servers.nscpphonebook into -> "ldap_2.servers.nscpphonebook.maxHits"
|
||||||
PRInt32 maxHits;
|
PRInt32 maxHits;
|
||||||
rv = prefs->GetIntPref(prefName.get(), &maxHits);
|
rv = prefs->GetIntPref(prefName.get(), &maxHits);
|
||||||
NS_ENSURE_SUCCESS(rv,rv);
|
if (NS_FAILED(rv))
|
||||||
|
maxHits = 100;
|
||||||
|
|
||||||
// Perform the query
|
// Perform the query
|
||||||
rv = DoQuery(arguments, queryListener, maxHits, 0, &mContext);
|
rv = DoQuery(arguments, queryListener, maxHits, 0, &mContext);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче