Skip to content

Commit

Permalink
[BUGFIX] Allow tables with adminOnly in cleanup task of recycler
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
georgringer authored and IchHabRecht committed Apr 5, 2018
1 parent 62ce901 commit 8af8bcd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -71,7 +71,7 @@ protected function getTcaSelectHtml($selectedTables = [])

$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>';
Expand Down

0 comments on commit 8af8bcd

Please sign in to comment.