[BUGFIX] Allow tables with adminOnly in cleanup task of recycler 66/56566/2
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 5 Apr 2018 14:08:03 +0000 (16:08 +0200)
committerNicole Cordes <typo3@cordes.co>
Thu, 5 Apr 2018 21:28:02 +0000 (23:28 +0200)
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/56566
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/recycler/Classes/Task/CleanerFieldProvider.php

index bf327e4..9075910 100644 (file)
@@ -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>';