Issue Bug New Orphaned

#90939DataHandler: Existing pages are not moved into newly created pages

Jonas Eberle 04/03/20, 09:53 updated 09/14/21, 09:50

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

Reviews 1

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch

Commit message
[BUGFIX] DataHandler: Existing pages are not moved into newly created pages Resolves: #90939 Releases: main