#108353Add a way to prevent DataHandler to copy defined tables
Description
This was possible prior TYPO3 v14 and got removed via https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/14.0/Breaking-107856-DataHandlerRemoveInternalPropertyCopyWhichTablesandPropertiesNeverHideAtCopyandCopyTree.html.
There might be situations where a specific set of tables should never be copied. My concrete example is: https://github.com/DanielSiepmann/tracking/pull/55 but there might be more use cases.
The new implementation does not seem to offer a proper way to alter the list of tables allowed for copying.
Reviews 1
Related issues 2
History 1113
-
Garvin Hicking changed category <span data-processor="relativetime" data-value="2025-11-27T20:02:06+00:00" > 11/27/25, 20:02 </span>
-
Garvin Hicking changed Related to #107856 <span data-processor="relativetime" data-value="2025-11-27T20:02:38+00:00" > 11/27/25, 20:02 </span>
-
Daniel Windloff commented <span data-processor="relativetime" data-value="2025-11-27T20:54:58+00:00" > 11/27/25, 20:54 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 91929 status
NewUnder Review <span data-processor="relativetime" data-value="2025-11-28T10:28:46+00:00" > 11/28/25, 10:28 </span> -
Daniel Windloff commented <span data-processor="relativetime" data-value="2025-11-28T10:30:50+00:00" > 11/28/25, 10:30 </span>
Added a suggestion to avoid the error message.
-
Daniel Siepmann commented <span data-processor="relativetime" data-value="2026-03-06T11:47:39+00:00" > 03/06/26, 11:47 </span>
Can’t we just add an Event tocopySpecificPage()
to allow modifying the incoming$copyTablesArray
? Or add a new TCA option to prevent copying of a table, which is taken into account incopyPages()
for example?Right now I’m a bit frustrated because Feature Freeze is approaching, and I fear this won’t make it, leaving my extension broken. Or forcing me to xclass DataHandler which is a very bad approach.
Let me know if I can help with anything.
-
Benni Mack changed target version <span data-processor="relativetime" data-value="2026-04-21T11:23:50+00:00" > 04/21/26, 11:23 </span>
-
Gerrit Code Review pushed patch set 2 for main to change 91929 <span data-processor="relativetime" data-value="2026-04-22T07:14:01+00:00" > 04/22/26, 07:14 </span>
-
Daniel Siepmann changed tracker
BugFeature target version TYPO3 Version14<span data-processor="relativetime" data-value="2026-04-28T05:38:57+00:00" > 04/28/26, 05:38 </span> -
Anton Danilov changed Duplicates #104740 <span data-processor="relativetime" data-value="2026-09-29T11:42:51+00:00" > 09/29/26, 11:42 </span>
-
Anton Danilov changed
Duplicates #104740<span data-processor="relativetime" data-value="2026-09-29T12:14:24+00:00" > 09/29/26, 12:14 </span> -
Anton Danilov changed Related to #104740 <span data-processor="relativetime" data-value="2026-09-29T12:14:29+00:00" > 09/29/26, 12:14 </span>
-
Benni Mack commented and changed status
Under ReviewClosed <span data-processor="relativetime" data-value="2026-11-09T11:15:07+00:00" > 11/09/26, 11:15 </span>Fixed with #104740 already in v14.
Hi Daniel,
My intention with these DataHandler changes was to reduce the internal state to allow further refactoring.
The used property
copyWhichTableswas internal, which is why I only named it in the breaking documentation.Regarding the specific problem:
I haven’t looked at the extension in detail. If I don’t get it right, please excuse me.
As far as I see, the TCA records aren’t created with the DataHandler (but with DBAL) and shouldn’t be editable in the backend, as the records refer to tracking data. Accordingly, the tables should be set to
[$tablename][ctrl][readOnly] = true.Does that work for you?
Best regards,
Daniel