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/56564
Reviewed-by: Guido Schmechel <littlegee@web.de>
Tested-by: Guido Schmechel <littlegee@web.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
  • Loading branch information
georgringer authored and neufeind committed Apr 5, 2018
1 parent 9207e8a commit 1b0acf6
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 1b0acf6

Please sign in to comment.