Issue Bug Closed

#75542New Content element wizard ignores current page uid

Markus Hölzle 04/12/16, 13:15 updated 04/18/16, 23:48

Description

Hey,

I think there is a bug in the “New Content element wizard”.

I have a content element with an own wizard which uses the TypoScript configuration from \TYPO3\CMS\Extbase\Configuration\ConfigurationManager->getConfiguration(…).
This needs the correct page uid (pid) because we have different configurations in a website system with multiple “root sites”.
The backend configuration manager uses the function \TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager->getCurrentPageId() to get this id.
This function checks the GP vars and uses a “random” root page if no “id” was submitted via GP vars.
—> So we should send a GP var “id” in the “New Content element wizard”.

This should be done in \TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap->onClickInsertRecord(…).
We can just add the paramter “id” and everything works fine:

$location = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('record_edit', array(
...
'id' => $pid,
...
));

What do you think about it?
Markus

Reviews 1