diff --git a/Classes/SlugModifier.php b/Classes/SlugModifier.php index d490154..e79c17a 100644 --- a/Classes/SlugModifier.php +++ b/Classes/SlugModifier.php @@ -92,7 +92,7 @@ protected function resolveHookParameters(array $configuration, string $tableName $row = $stm->fetchAssociative(); } if ($row !== false) { - $this->recordData = $row; + $this->recordData = array_replace($row, $record); } } @@ -137,7 +137,7 @@ protected function regenerateSlug(SlugHelper $helper): string } foreach ($fieldNameParts as $fieldName) { if (!empty($this->recordData[$fieldName])) { - $pieceOfSlug = $this->recordData[$fieldName]; + $pieceOfSlug = (string)$this->recordData[$fieldName]; $pieceOfSlug = str_replace( array_keys($replaceConfiguration), array_values($replaceConfiguration),