Fixed a regression on the global search, introduced in the commit [3188]

SVN:trunk[3208]
This commit is contained in:
Romain Quetiez
2014-06-12 09:27:09 +00:00
parent 5007e6ffc3
commit 14c78cb543

View File

@@ -1447,10 +1447,10 @@ EOF
}
if ($iPos < count($aSearchClasses))
{
$sJSNeedle = addslashes($sFullText);
$sJSNeedle = json_encode($aFullTextNeedles);
$oPage->add_ready_script(
<<<EOF
var oParams = {operation: 'full_text_search', position: $iPos, text: '$sJSNeedle', count: $iCount, tune: $iTune};
var oParams = {operation: 'full_text_search', position: $iPos, needles: $sJSNeedle, count: $iCount, tune: $iTune};
$.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php', oParams, function(data) {
$('#full_text_results').append(data);
});