Skip to content

Commit

Permalink
[BUGFIX] Make the improved search actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Nov 15, 2024
1 parent da43144 commit 9c6b8ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __invoke(ModifyResultItemInLiveSearchEvent $event): void
}

$table = $resultItem->getExtraData()['table'] ?? '';
if (!$table) {
if ($table !== 'tx_news_domain_model_news') {
return;
}

Expand All @@ -71,7 +71,7 @@ public function __invoke(ModifyResultItemInLiveSearchEvent $event): void
protected function addFieldsToResult(ResultItem $resultItem, array $row): void
{
foreach ($this->configuration as $fieldName => $field) {
if (isset($GLOBALS['TCA']['tx_news_domain_model_news']['columns'][$fieldName])) {
if (!isset($GLOBALS['TCA']['tx_news_domain_model_news']['columns'][$fieldName])) {
continue;
}
$fieldValue = $row[$fieldName] ?? null;
Expand Down

0 comments on commit 9c6b8ac

Please sign in to comment.