Issue Feature Closed

#108353Add a way to prevent DataHandler to copy defined tables

Daniel Siepmann 11/27/25, 19:26 updated 11/09/26, 11:15

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

History 1113

  1. Daniel Windloff commented <span data-processor="relativetime" data-value="2025-11-27T20:54:58+00:00" > 11/27/25, 20:54 </span>

    Hi Daniel,

    My intention with these DataHandler changes was to reduce the internal state to allow further refactoring.
    The used property copyWhichTables was 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

  2. 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.

  3. 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 to
    copySpecificPage()
    to allow modifying the incoming
    $copyTablesArray
    ? Or add a new TCA option to prevent copying of a table, which is taken into account in
    copyPages()
    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.

  4. Daniel Siepmann changed tracker Bug Feature target version TYPO3 Version 14 <span data-processor="relativetime" data-value="2026-04-28T05:38:57+00:00" > 04/28/26, 05:38 </span>

  5. Benni Mack commented and changed status Under Review Closed <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.