[BUGFIX] Do not overwrite imagecaption in content adapter 99/18699/2
authorHelmut Hummel <h.hummel@bitmotion.de>
Tue, 12 Feb 2013 16:57:19 +0000 (17:57 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Tue, 5 Mar 2013 13:35:48 +0000 (14:35 +0100)
commitac951d126de91265c93f6d55abfcf584ce3572c2
treea8fd3ba67e28729f8cf92da49159ad9e56e62c36
parent6fb5b099657bd2086075b799f60215a8b7e2c728
[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
Reviewed-on: https://review.typo3.org/18699
typo3/sysext/core/Classes/Resource/Service/FrontendContentAdapterService.php
typo3/sysext/core/Tests/Unit/Resource/Service/FrontendContentAdapterServiceTest.php