Bug #61849
closedCreate new content element drops target page id parameter on the way
0%
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).
I found that the parameters passed to
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.
Updated by Jan Philipp Timme about 10 years ago
- Project changed from 1933 to TYPO3 Core
I hope this is the correct project for this issue. :)
Updated by Jan Philipp Timme about 10 years ago
Nevermind, i just found out someone already fixed this.
This is a duplicate of #59059 and can be closed.
Updated by Frank Nägler about 10 years ago
- Status changed from New to Closed
- Is Regression set to No
closed by author request