diff --git a/Classes/Domain/Repository/FormDataRepository.php b/Classes/Domain/Repository/FormDataRepository.php index 4275135..626eb75 100644 --- a/Classes/Domain/Repository/FormDataRepository.php +++ b/Classes/Domain/Repository/FormDataRepository.php @@ -191,7 +191,9 @@ function (FormData $formDataSample) { return $this->siteAccesibilityService->isSiteAccessible($formDataSample->getSiteName()) ? $formDataSample->getSiteName() : null; }, $this->findAllUnique('form.siteName') - )); + ), function (?string $value) { + return $value !== null; + }); } protected function initializeAccessibleDimensions(): array @@ -201,7 +203,9 @@ function (FormData $formDataSample) { return $this->dimensionAccesibilityService->isDimensionCombinationAccessible($formDataSample->getContentDimensions()) ? $formDataSample->getDimensionsHash() : null; }, $this->findAllUnique('form.dimensionsHash') - )); + ), function (?string $value) { + return $value !== null; + }); } protected function findAllUnique(string $groupField): array