Skip to content
Snippets Groups Projects
Commit 2d2f561f authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix instanciating QuerySettings

parent 968ee0b7
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,9 @@ class JobRepository extends Repository {
public function __construct(ObjectManagerInterface $objectManager) {
parent::__construct($objectManager);
$querySettings = GeneralUtility::makeInstance(Typo3QuerySettings::class);
// Appearently some of the extbase classes still need the objectManager
$querySettings = $objectManager->get(Typo3QuerySettings::class);
$querySettings->setRespectStoragePage(TRUE);
$querySettings->setLanguageUid($GLOBALS['TSFE']->sys_language_uid);
$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