From 3e0b6ccf75e1dd320751c1e6fd0e00e9de85dfe4 Mon Sep 17 00:00:00 2001 From: Philipp Kitzberger Date: Tue, 1 Aug 2023 13:17:22 +0200 Subject: [PATCH] [BUGFIX] Prevent indexing error on missing 'foreignLabelField' of SOLR_RELATION Related: #3734 --- Classes/ContentObject/Relation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/ContentObject/Relation.php b/Classes/ContentObject/Relation.php index e0f86d0e75..3764dd17e6 100644 --- a/Classes/ContentObject/Relation.php +++ b/Classes/ContentObject/Relation.php @@ -352,7 +352,8 @@ protected function resolveRelatedValue( // adjust configuration for next level $this->configuration['localField'] = $foreignTableLabelField; $parentContentObject->data = $relatedRecord; - if (strpos($this->configuration['foreignLabelField'], '.') !== false) { + if (isset($this->configuration['foreignLabelField']) && + strpos($this->configuration['foreignLabelField'], '.') !== false) { list(, $this->configuration['foreignLabelField']) = explode( '.', $this->configuration['foreignLabelField'],