Pārlūkot izejas kodu

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3208 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 gadi atpakaļ
vecāks
revīzija
596dddda5f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      pages/ajax.render.php

+ 2 - 2
pages/ajax.render.php

@@ -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);
 				});