Project

General

Profile

Actions

Feature #104740

open

Exclude tables when copying a page record in the backend

Added by Andreas Kießling 3 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2024-08-26
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

When a page is copied, all tables that the current user has access to are copied.
For an admin, array_keys($GLOBALS['TCA']) is used to determine the list of tables to copy.
When an extension creates log records, e.g. for form submissions, this may lead to errors or copying a lot of records that should rather be skipped.

You might argue that you can make the storage page configurable, but then the user needs to take care of that as well - or you will probably store the logs of two different forms in the same storage record.

Thus i'd like to propose either a new TCA setting that can then be used to filter the result of \TYPO3\CMS\Core\DataHandling\DataHandler::getAllowedTablesToCopyWhenCopyingAPage so that you can easily skip all those log tables etc. by configuration, or an event that gets the $copyTablesArray handed over.

No data to display

Actions

Also available in: Atom PDF