[BUGFIX] Do not overwrite imagecaption in content adapter 22/18222/5
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:34:01 +0000 (14:34 +0100)
commit8fe18b16db5460a006a46ef79cc0c3130666aeb5
tree835482f4c80b33a06f803d3d51564d8c4bd89a66
parent794649279a7fc6090ecc7d2e8a0a36aa9b46fb88
[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
typo3/sysext/core/Classes/Resource/Service/FrontendContentAdapterService.php
typo3/sysext/core/Tests/Unit/Resource/Service/FrontendContentAdapterServiceTest.php