[BUGFIX] CleanerTask processes all FileResource Fields 12/57112/4
authorSven Jürgens <typo3@blue-side.de>
Fri, 1 Jun 2018 13:19:32 +0000 (15:19 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 26 Oct 2018 12:09:16 +0000 (14:09 +0200)
By removing an errorous break in a loop, all FileResource Fields are found
and therefor all connected files can be deleted.

Resolves: #85140
Releases: master, 8.7
Change-Id: I0aea4427dd9e74b1a11ab04e8aa235e17ae1a031
Reviewed-on: https://review.typo3.org/57112
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/recycler/Classes/Task/CleanerTask.php

index 8167340..e1004f9 100644 (file)
@@ -238,7 +238,6 @@ class CleanerTask extends AbstractTask
                     && $fieldConfiguration['config']['internal_type'] === 'file'
                 ) {
                     $result[] = $fieldName;
-                    break;
                 }
             }
         }