[BUGFIX] Do not add error flash messages twice 47/48347/3
authorHelmut Hummel <info@helhum.io>
Mon, 2 Nov 2015 21:49:17 +0000 (22:49 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 28 May 2016 08:40:03 +0000 (10:40 +0200)
Error messages published by ExtendedFileUtility get added to the flash
message queue in a translated version so it's unnecessary to publish an
untranslated version based on the log entries as well.

Resolves: #76337
Related: #72175
Related: #71255
Releases: 7.6
Change-Id: I818541916f182b63151a866590bb1541a0c02d39
Reviewed-on: https://review.typo3.org/48347
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Controller/File/FileController.php
typo3/sysext/filelist/Classes/Controller/FileListController.php

index 4c95a4f..2ddf555 100644 (file)
@@ -163,8 +163,6 @@ class FileController
      */
     public function finish()
     {
-        // Push errors to flash message queue, if there are any
-        $this->fileProcessor->pushErrorMessagesToFlashMessageQueue();
         BackendUtility::setUpdateSignal('updateFolderTree');
         if ($this->redirect) {
             \TYPO3\CMS\Core\Utility\HttpUtility::redirect($this->redirect);
@@ -183,8 +181,6 @@ class FileController
     {
         $this->main();
 
-        // Push errors to flash message queue, if there are any
-        $this->fileProcessor->pushErrorMessagesToFlashMessageQueue();
         BackendUtility::setUpdateSignal('updateFolderTree');
 
         if ($this->redirect) {
index 4707ae2..53a4b5f 100644 (file)
@@ -386,7 +386,6 @@ class FileListController extends ActionController
                     $fileProcessor->setExistingFilesConflictMode($this->overwriteExistingFiles);
                     $fileProcessor->start($FILE);
                     $fileProcessor->processData();
-                    $fileProcessor->pushErrorMessagesToFlashMessageQueue();
                 }
             }
             // Start up filelisting object, include settings.