[BUGFIX] Update selected ratio in preview element 79/51979/3
authorHelmut Hummel <typo3@helhum.io>
Tue, 7 Mar 2017 19:30:00 +0000 (20:30 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 8 Mar 2017 10:25:11 +0000 (11:25 +0100)
commit9c8592ab8b6d9ec4c89b7e052cb6da58847b58c3
tree91bf9cdce92b5371b27c4ef0070af980d6bdddb2
parent3094854db1286bd061051599cc391342d8f99f0b
[BUGFIX] Update selected ratio in preview element

When selecting a different ratio and accepting the image manipulation,
not only the image thumbnails, but also the selected ratio should be updated.

Also set the selected ratio correctly when initializing the image manipulation
and set the value even if selected ratio is not defined in TCA but is present
in allowed aspect ratios.

Also always set crop area from saved collection.

Resolves: #80169
Releases: master
Change-Id: I63c24e14b724c3f47ff3101afb4bcb56983c1b28
Reviewed-on: https://review.typo3.org/51979
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Resources/Private/Templates/ImageManipulation/ImageManipulationElement.html
typo3/sysext/backend/Resources/Private/Templates/ImageManipulation/ImageManipulationWizard.html
typo3/sysext/backend/Resources/Private/TypeScript/ImageManipulation.ts
typo3/sysext/backend/Resources/Public/JavaScript/ImageManipulation.js
typo3/sysext/core/Classes/Imaging/ImageManipulation/CropVariantCollection.php