Commit 6b595fcf authored by Stefan Busemann's avatar Stefan Busemann

Merge branch 'bugfix/get-owner-from-all-pids' into 'develop'

Get users for ownership from all storage PIDs

See merge request !414
parents a99eb0a0 4b08fc33
Pipeline #7008 passed with stages
in 8 minutes and 1 second
......@@ -169,6 +169,9 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
}
$owner = [];
if ($extension instanceof \T3o\TerFe2\Domain\Model\Extension and $extension->getFrontendUser()) {
$querySettings = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings::class);
$querySettings->setRespectStoragePage(false);
$this->ownerRepository->setDefaultQuerySettings($querySettings);
$owner = $this->ownerRepository->findOneByUsername($extension->getFrontendUser());
}
$versionHistoryCount = (!empty($this->settings['versionHistoryCount']) ? $this->settings['versionHistoryCount'] : 5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment