Skip to content

Commit

Permalink
[BUGFIX] DatabaseRecordList: Alternative route for new content wizard
Browse files Browse the repository at this point in the history
Respect the configuration mod.newContentElementWizard.override and
make it work again.

Releases: master, 10.4
Resolves: #92075
Change-Id: I5d9d6ada2c502629a4cae67794d9d3a251de600f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65426
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
  • Loading branch information
dawind authored and maddy2101 committed Aug 23, 2020
1 parent f471e44 commit 630f7c1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1551,7 +1551,7 @@ public function renderListHeader($table, $currentIdList)
: $this->iconFactory->getIcon('actions-add', Icon::SIZE_SMALL);
if ($table === 'tt_content') {
// If mod.newContentElementWizard.override is set, use that extension's create new content wizard instead:
$newContentElementWizard = BackendUtility::getPagesTSconfig($this->pageinfo['uid'])['mod.']['newContentElementWizard.']['override']
$newContentElementWizard = $tsConfig['mod.']['newContentElementWizard.']['override']
?? 'new_content_element_wizard';
$url = (string)$this->uriBuilder->buildUriFromRoute(
$newContentElementWizard,
Expand Down

0 comments on commit 630f7c1

Please sign in to comment.