Bug #84505
closedThe list of tables in the recycler scheduler ignores all tables (except the last one) with duplicate titles
100%
Description
The scheduler task of EXT:recycler
ignores tables with the same title.
The problem is sysext/recycler/Classes/Task/CleanerFieldProvider.php
on line 77 (location from TYPO3 8.7.11) where the TCA title is the array key - later tables with the same title will overwrite previous ones.
But in big TYPO3 setups it is pretty common to have multiple tables with the same title, especially on "trivial" tables, for eample "News", "Link", etc. This is perfectly fine for multiple reasons: A table can be visible only on specific trees (via TSconfig) and thus have the same title as another one, it can have historical reasons to have the same title for different tables, or different 3rd party extension can provide tables with the same title (which is very hard to influence). However, in these situations, the recycler scheduler job will simply ignore these tables.
The field provider and task classes must be adjusted, so that the table name itself is the array key instead of its title label.
Found in TYPO3 v8, but probably present in v7 as well.
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56403
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56403
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56407
Updated by Georg Ringer over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0c90a6e1aba4cdd6a5c447130a47feebbd4e2b18.