Bug #78444
closedTCA type "imageManipulation" does not use enableZoom
100%
Description
As described in https://docs.typo3.org/typo3cms/extensions/core/Changelog/7.2/Feature-65585-AddTCATypeImage_manipulation.html
there is a field called enableZoom
. As a matter of fact the field value is never passed to the ImageManipulationWizard
.
In typo3/sysext/backend/Classes/Form/Wizard/ImageManipulationWizard.php
- $queryParams['bool']
is used but the correct param would be $queryParams['zoom']
as it is passed as
$wizardData = [ 'zoom' => $config['enableZoom'] ? '1' : '0', 'ratios' => json_encode($config['ratios']), 'file' => $file->getUid(), ];
In typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php
Updated by Philip Majewski about 8 years ago
So when I change $queryParams['bool']
to $queryParams['zoom']
in ImageManipulationWizard
I get a zoom in/out button in the image editor.
Updated by Philip Majewski about 8 years ago
- Assignee set to Philip Majewski
How to reproduce the bug:
Add a TCA column from type imageManipulation
and set enableZoom
to true
. After clearing caches the crop editor won't show any zooming buttons as expected.
'crop' => array( 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.crop', 'config' => array( 'type' => 'imageManipulation', 'enableZoom' => true ) ),
Updated by Gerrit Code Review about 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50386
Updated by Gerrit Code Review about 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50386
Updated by Gerrit Code Review about 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50394
Updated by Philip Majewski about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0c6821c6de03d36ad3ee839d6003ff0a01440dbf.