Review main Merged

95852[BUGFIX] Apply content restrictions on new pages

Stefan Bürk CR +2 V +2 Hard +239 −38 updated 09/29/26, 08:12

Commit message

The content element restrictions of backend layouts were checked in
processDatamap_beforeStart(), before DataHandler created any record.
A content element on a page created in the same datamap ("NEW..."
pid), or placed after a new content element ("-NEW..." pid), was
checked against page 0, which has no restrictions, and was saved
regardless of the backend layout of its page.

The check now runs for each record in
processDatamap_preProcessFieldArray(). DataHandler processes the
"pages" table first, so the placeholder resolves to the real page and
its backend layout there, and a disallowed record is skipped before
anything is written.

Review

  • Code review CR +2 Done
    • Benni Mack +2
    • Wouter Wolters +1
  • Verified V +2 Done
    • Benni Mack +2
    • Oliver Klee +1
    • core-ci +1 CI

Issues 1

Files 6

Review log 56

  1. Stefan Bürk uploaded patch set 1 09/15/26, 10:34

  2. core-ci voted on patch set 1 V +1 09/15/26, 10:48 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108611

  3. Oliver Klee voted on patch set 1 V +1 09/15/26, 10:50

  4. Wouter Wolters voted on patch set 1 CR +1 09/17/26, 16:20

  5. Benni Mack voted on patch set 1 CR +2 V +2 09/29/26, 08:12

  6. Benni Mack merged patch set 2 09/29/26, 08:12