#61849Create new content element drops target page id parameter on the way
Description
Apparently, somewhere in between 4.7.11 and 4.7.19, a bug was introduced that causes an error when trying to create a new content element on a page using the button in the docheader-row1 bar.
Using tag TYPO_4-7-19 and a fresh install from the dummy package, i can reproduce this bug.
Steps to reproduce- Log into the backend as admin.
- Visit page module.
- Pick any page you have access to or create a new one.
- Click “Create new content element” button in the very top bar.
- Choose “Regular Text element” (any other element should throw the same error)
- Enter required data, hit “Save and close document”.
You should encounter an error similar to this:
1: Attempt to insert record on page '[root-level]' (0) where this table, tt_content, is not allowed
Debugging hints*
As far as my tracking goes, the page id is passed from db_layout.php to *./typo3/sysext/cms/layout/db_new_content_el.php.
But when choosing a content element, the page id parameter passed to alt_doc.php is already zero (0).
function onClickInsertRecord($row,$vv,$moveUid,$pid,$sys_lang=0)in line 93 of db_net_content_el.php are empty or zero, meaning that somewhere in this file, the parameters are dropped.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.