N°1500 Advanced search on external keys performance

- bugfix: do not run both queries if nb result is >= 150

SVN:trunk[5864]
This commit is contained in:
Bruno Da Silva
2018-06-14 08:14:53 +00:00
parent 586cc1f003
commit 8fbd53d72d

View File

@@ -370,9 +370,9 @@ $(function()
me._onACSearchSuccess(oResponse);
if (oResponse.length > 150)
if (Object.keys(oResponse).length >= 150)
{
this._emptyACTempHint();
me._emptyACTempHint();
return;
}