Skip to content
Snippets Groups Projects
Commit 1b0acf66 authored by Georg Ringer's avatar Georg Ringer Committed by Stefan Neufeind
Browse files

[BUGFIX] Allow tables with adminOnly in cleanup task of recycler

Allow also tables with the setting 'adminOnly' to be removed with the
scheduler task of EXT:recycler.

Resolves: #84604
Releases: master, 8.7
Change-Id: I41010359bbc3aa55f88e4bb184e9effe35884a76
Reviewed-on: https://review.typo3.org/56564


Reviewed-by: default avatarGuido Schmechel <littlegee@web.de>
Tested-by: default avatarGuido Schmechel <littlegee@web.de>
Reviewed-by: default avatarMathias Brodala <mbrodala@pagemachine.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
parent 9207e8a4
Branches
Tags
No related merge requests found
......@@ -71,7 +71,7 @@ class CleanerFieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldProvid
$options = [];
foreach ($GLOBALS['TCA'] as $table => $tableConf) {
if (!$tableConf['ctrl']['adminOnly'] && !empty($tableConf['ctrl']['delete'])) {
if (!empty($tableConf['ctrl']['delete'])) {
$selected = in_array($table, $selectedTables, true) ? ' selected="selected"' : '';
$tableTitle = $this->getLanguageService()->sL($tableConf['ctrl']['title']);
$options[$tableTitle . ' ' . $table] = '<option' . $selected . ' value="' . $table . '">' . htmlspecialchars($tableTitle . ' (' . $table . ')') . '</option>';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment