Bug #24141 ยป 16486.patch
t3lib/search/class.t3lib_search_livesearch.php (working copy) | ||
---|---|---|
*/
|
||
protected function makeQuerySearchByTable($tableName, $fieldsToSearchWithin) {
|
||
// free text search
|
||
$queryLikeStatement = ' LIKE \'%' . $this->getQueryString() . '%\'';
|
||
$queryLikeStatement = ' LIKE \'%' . $this->getQueryString($tableName) . '%\'';
|
||
$queryPart = ' AND (' . implode($queryLikeStatement . ' OR ', $fieldsToSearchWithin) . $queryLikeStatement . ')';
|
||
$queryPart .= t3lib_BEfunc::deleteClause($tableName);
|
||
$queryPart .= t3lib_BEfunc::versioningPlaceholderClause($tableName);
|
||
... | ... | |
/**
|
||
* Safely retrieve the queryString.
|
||
*
|
||
* @param string $tableName
|
||
* @return string
|
||
* @see t3lib_db::quoteStr()
|
||
*/
|
||
public function getQueryString() {
|
||
return $GLOBALS['TYPO3_DB']->quoteStr($this->queryString, '');
|
||
public function getQueryString($tableName = '') {
|
||
return $GLOBALS['TYPO3_DB']->quoteStr($this->queryString, $tableName);
|
||
}
|
||
/**
|