From 26b0bd110f955475d60b9fc7cf645aa5f592d965 Mon Sep 17 00:00:00 2001 From: Matthias Adrowski <matthias.adrowski@sgalinski.de> Date: Fri, 1 Apr 2022 09:08:51 +0200 Subject: [PATCH] [TASK] Fix error when using upgrade wizard --- Classes/Domain/Repository/AbstractRepository.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/Domain/Repository/AbstractRepository.php b/Classes/Domain/Repository/AbstractRepository.php index 26a1770..348f5d4 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); -- GitLab