Skip to content
Snippets Groups Projects
Commit 26b0bd11 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Fix error when using upgrade wizard

parent 4867d658
No related branches found
No related tags found
1 merge request!38Feature upgrade to typo3 11
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment