Skip to content

Commit 032b1b7

Browse files
authored
BUGFIX: Handle null title in suggestion indexing
If the `title` has a `null` value for some reason, the helper will throw an exception. This avoids that by passing an empty string instead.
1 parent 8f81abc commit 032b1b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Configuration/NodeTypes.Mixins.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
dimensionCombinationHash:
1717
type: category
1818
path: '__dimensionCombinationHash'
19-
indexing: "${Flowpack.SearchPlugin.Suggestion.build(q(node).property('title'), q(node).is('[instanceof Neos.Neos:Document]') ? node.identifier : q(node).parents('[instanceof Neos.Neos:Document]').get(0).identifier, {nodeIdentifier: node.identifier}, 20)}"
19+
indexing: "${Flowpack.SearchPlugin.Suggestion.build(q(node).property('title') ? q(node).property('title') : '', q(node).is('[instanceof Neos.Neos:Document]') ? node.identifier : q(node).parents('[instanceof Neos.Neos:Document]').get(0).identifier, {nodeIdentifier: node.identifier}, 20)}"
2020

2121
'Flowpack.SearchPlugin:AutocompletableMixin':
2222
abstract: true

0 commit comments

Comments
 (0)