mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-23 15:16:10 +01:00
[TASK] Corectly index access group for query content
This commit is contained in:
parent
de5261f7d4
commit
1f0eae88f7
1 changed files with 10 additions and 0 deletions
|
@ -174,6 +174,16 @@ class TcaTableService implements TcaTableServiceInterface
|
||||||
if (isset($record[$this->tca['ctrl']['label']]) && !isset($record['search_title'])) {
|
if (isset($record[$this->tca['ctrl']['label']]) && !isset($record['search_title'])) {
|
||||||
$record['search_title'] = $record[$this->tca['ctrl']['label']];
|
$record['search_title'] = $record[$this->tca['ctrl']['label']];
|
||||||
}
|
}
|
||||||
|
if (isset($this->tca['ctrl']['enablecolumns']['fe_group']) && isset($record[$this->tca['ctrl']['enablecolumns']['fe_group']])) {
|
||||||
|
$groups = GeneralUtility::intExplode(
|
||||||
|
',',
|
||||||
|
$record[$this->tca['ctrl']['enablecolumns']['fe_group']],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
// Always fallback on public visibility when configured
|
||||||
|
$record[$this->tca['ctrl']['enablecolumns']['fe_group']] = !empty($groups) ? $groups : [0];
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($record['search_page_typolink'])) {
|
if (!isset($record['search_page_typolink'])) {
|
||||||
switch ($this->tableName) {
|
switch ($this->tableName) {
|
||||||
case 'pages':
|
case 'pages':
|
||||||
|
|
Loading…
Reference in a new issue