[BUGFIX] Do not overwrite imagecaption in content adapter
Problem: Create a new content element of type file links, add a file relation and a description to this file. Switch this element to be an image element, add an image and a description of the image Expected result: An image with the image description is shown Actual result: An image with the description of the file is shown. Solution: Check if the field actually is shown in the selected content element type. Fixes: #45415 Releases: 6.0, 6.1 Change-Id: I3aa0e47b336cfa881c637b7f5a9e68476ded88ae Reviewed-on: https://review.typo3.org/18222 Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters Reviewed-by: Helmut Hummel Tested-by: Helmut Hummel
Showing
- typo3/sysext/core/Classes/Resource/Service/FrontendContentAdapterService.php 31 additions, 6 deletions...lasses/Resource/Service/FrontendContentAdapterService.php
- typo3/sysext/core/Tests/Unit/Resource/Service/FrontendContentAdapterServiceTest.php 68 additions, 3 deletions...it/Resource/Service/FrontendContentAdapterServiceTest.php
Please register or sign in to comment