Review 11.5 Work in progress Stale

92255[WIP][BUGFIX] Use parent page id in extbase for `pid` relation to pages

Stefan Bürk CR 0 V 0 Easy +11 −1 updated 06/15/26, 15:03

Commit message

In case of configured group relation for a record table `pid`
field, for example like:

    'pid' => [
        'label' => 'Record Storage PID',
        'config' => [
            'type' => 'group',
            'allowed' => 'pages',
            'foreign_table' => 'pages',
        ],
    ],

extbase uses a hardcoded zero `(int)0` for the `pid` value
in the `Backend::insertObject()` setting that back to the
object and always saving these records on `pid=0` even if
a custom `pid` value has been provided with a related page
record uid.

This change introduces a speceial `pid` treatment for that
case ensure to use the related record uid as `pid` and now
persisting the record on expected page.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/55/92255/1 && git checkout FETCH_HEAD
Cherry-pick onto 11.5
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/55/92255/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote

Files 1

Review log 3

  1. Stefan Bürk uploaded patch set 1 01/06/26, 15:29

  2. Stefan Bürk wrote 01/07/26, 10:29

    Set private
  3. Stefan Bürk wrote 06/15/26, 15:03

    Unset private