Bug #24573 ยป 17034.diff
t3lib/search/class.t3lib_search_livesearch.php (working copy) | ||
---|---|---|
$getRecordArray = array();
|
||
$fieldsToSearchWithin = $this->extractSearchableFieldsFromTable($tableName);
|
||
$pageBasedPermission = ($tableName == 'pages' && $this->userPermissions) ? $this->userPermissions : '1=1 ';
|
||
$where = 'pid IN(' . $pageIdList . ')' . $pageBasedPermission . $this->makeQuerySearchByTable($tableName, $fieldsToSearchWithin);
|
||
$where = 'pid IN(' . $pageIdList . ') AND ' . $pageBasedPermission . $this->makeQuerySearchByTable($tableName, $fieldsToSearchWithin);
|
||
$orderBy = $this->makeOrderByTable($tableName);
|
||
$getRecordArray = $this->getRecordArray(
|
||
$tableName,
|
||
$pageBasedPermission . $this->makeQuerySearchByTable($tableName, $fieldsToSearchWithin),
|
||
$where,
|
||
$this->makeOrderByTable($tableName),
|
||
$limit
|
||
);
|