diff --git a/Classes/Domain/Repository/AbstractRepository.php b/Classes/Domain/Repository/AbstractRepository.php index 26a1770e4d8ac1393ea6c879b53caf4381c8d807..348f5d4fc313cfc00e5e9c2cce50cfd8a3bc8584 100644 --- a/Classes/Domain/Repository/AbstractRepository.php +++ b/Classes/Domain/Repository/AbstractRepository.php @@ -47,7 +47,9 @@ abstract class AbstractRepository extends Repository { /** @var Typo3QuerySettings $querySettings */ $querySettings = $this->objectManager->get(Typo3QuerySettings::class); $querySettings->setRespectStoragePage(FALSE); - if (ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()) { + // in Migration wizard it was possible tha $GLOBALS['TYPO3_REQUEST'] was not set + // this should not be the case in any other case + if (!isset($GLOBALS['TYPO3_REQUEST']) || ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()) { $querySettings->setIgnoreEnableFields(TRUE); } $this->setDefaultQuerySettings($querySettings);