Actions
Bug #61849
closedCreate new content element drops target page id parameter on the way
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-09-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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.
Actions