[BUGFIX] Pass correct query parameter to image manipulation view 94/50394/2
authorpille72 <philip.majewski@data-room.de>
Wed, 26 Oct 2016 14:17:19 +0000 (16:17 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 26 Oct 2016 17:34:43 +0000 (19:34 +0200)
The TCA type "imageManipulation" has a boolean config called "enableZoom".
As declared in "ImageManipulationElement" this config will be added to
the "ImageManipulationWizard" wizardData in a key called "zoom".
But "ImageManipulationWizard" assigns a non existing key "bool".

So "enableZoom" set to true or false will always result in false.

Releases: master, 7.6
Resolves: #78444
Change-Id: I7580927d4edeec246d71ade32497d34ba107589d
Reviewed-on: https://review.typo3.org/50394
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/Wizard/ImageManipulationWizard.php

index 7189c55..88a64b5 100644 (file)
@@ -54,7 +54,7 @@ class ImageManipulationWizard
 
             $view = $this->getFluidTemplateObject($this->templatePath . 'Wizards/ImageManipulationWizard.html');
             $view->assign('image', $image);
-            $view->assign('zoom', (bool)$queryParams['bool']);
+            $view->assign('zoom', (bool)$queryParams['zoom']);
             $view->assign('ratios', $this->getAvailableRatios($request));
             $content = $view->render();