Issue Bug Under Review Orphaned Regression

#107375DataHandler->isTableAllowedForThisPage() no longer checks doktype of correct page

Daniel Siepmann 09/03/25, 05:38 updated 04/22/26, 06:51

Description

This seems to be introduced via https://git.typo3.org/typo3/typo3/-/commit/9490df3 #106382.
The old code fetched the doktype of target page and passed that one down the chain.
The new code uses the doktype of the page record to insert, which seems to be the wrong logic.

https://git.typo3.org/typo3/typo3/-/commit/9490df3#2e113d50d07e048063e4879bbf366c06ea2235ac_7278_7224

Steps to reproduce:
  1. Create a custom page type.
  2. Prevent pages on the new custom page type.
  3. Create a page of custom page type.
  4. Copy the new page.
  5. Paste the copy onto a normal page.

Expected Behaviour:
The page is inserted, page tree is reloaded

Actual Behaviour:
An error is shown: 1: Attempt to insert record "pages:8854" on a page (34) that can't store record type

Normal pages should allow all new page types. But the system will respond with an error that the page is not allowed.

I suggest to keep the old logic to fetch the doktype from target page.

Reviews 1

History 35