Skip to content

Commit

Permalink
BUGFIX: Fix condition eel, provide searchNodeTypes as values
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed May 17, 2020
1 parent 239e896 commit e517566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/NodeSearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected function determineSearchStrategy($term, array $searchNodeTypes, Contex

$shouldUse = $this->eelEvaluationService->evaluate($searchStrategy['condition'], [
'term' => $term,
'searchNodeTypes' => $searchNodeTypes,
'searchNodeTypes' => array_values($searchNodeTypes),
'context' => $context,
'startingPoint' => $startingPoint,
]);
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Settings.SearchStrategy.TitlePrefix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PunktDe:
logRequests: true
searchStrategies:
titlePrefix:
condition: '${Array.indexOf(searchNodeTypes, "Neos.Neos:Document")}'
condition: '${Array.indexOf(searchNodeTypes, "Neos.Neos:Document") != -1}'
request:
query:
bool:
Expand Down

0 comments on commit e517566

Please sign in to comment.