[BUGFIX] Have ImageManipulationWizard return HTMLResponse 56/55856/2
authorMathias Schreiber <mathias.schreiber@typo3.org>
Wed, 21 Feb 2018 17:46:42 +0000 (18:46 +0100)
committerFrans Saris <franssaris@gmail.com>
Wed, 21 Feb 2018 18:58:27 +0000 (19:58 +0100)
ImageManipulationWizard now returns a proper HTMLResponse instead of a JsonResponse.
Furthermore an missing import has been added in LocalizationController.

Resolves: #84005
Releases: master
Change-Id: Ie02cdaca84afa0c7fcde109e0fbbe5237ee69600
Reviewed-on: https://review.typo3.org/55856
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/backend/Classes/Controller/Page/LocalizationController.php
typo3/sysext/backend/Classes/Form/Wizard/ImageManipulationWizard.php

index bc86f0a..912fa70 100644 (file)
@@ -21,6 +21,7 @@ use TYPO3\CMS\Backend\Domain\Repository\Localization\LocalizationRepository;
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\DataHandling\DataHandler;
 use TYPO3\CMS\Core\Http\JsonResponse;
+use TYPO3\CMS\Core\Http\Response;
 use TYPO3\CMS\Core\Imaging\Icon;
 use TYPO3\CMS\Core\Imaging\IconFactory;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
index f4637fa..69ce4d1 100644 (file)
@@ -17,7 +17,7 @@ namespace TYPO3\CMS\Backend\Form\Wizard;
 
 use Psr\Http\Message\ResponseInterface;
 use Psr\Http\Message\ServerRequestInterface;
-use TYPO3\CMS\Core\Http\JsonResponse;
+use TYPO3\CMS\Core\Http\HtmlResponse;
 use TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException;
 use TYPO3\CMS\Core\Resource\ResourceFactory;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
@@ -71,9 +71,9 @@ class ImageManipulationWizard
                 'cropVariants' => $queryParams['cropVariants']
             ];
             $content = $this->templateView->renderSection('Main', $viewData);
-            return new JsonResponse($content);
+            return new HtmlResponse($content);
         }
-        return new JsonResponse(null, 403);
+        return new HtmlResponse('', 403);
     }
 
     /**