Project

General

Profile

Actions

Bug #90939

open

DataHandler: Existing pages are not moved into newly created pages

Added by Jonas Eberle over 4 years ago. Updated about 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2020-04-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Documentation
Complexity:
Is Regression:
No
Sprint Focus:

Description

I suspected from the documentation https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/Typo3CoreEngine/Database/Index.html that this should work:

$data = [
    'pages' => [ 
        'NEW_IT' => [
            'pid' => 1,
            'hidden' => false,
            'title' => 'IT',
        ],
        591 => [
            // this is not set
            'pid' => 'NEW_IT', 
            // but this is set
            'title' => 'I am a child of IT', 
        ],
    ]
];

Yet it creates the new page but only sets the property 'title' on page 591. Page 591's 'pid' is not changed.

@Stefan Bürk has done a tremendous job in verifying that from TYPO3 8-10 and also finding that the DataHandler explicitly disallows that (https://stackoverflow.com/a/61000253/2819581)

The question is if either
a) documentation should be amended
b) DataHandler can be fixed

Actions

Also available in: Atom PDF