[BUGFIX] Show image metadata description 38/56438/2
authorGuido Schmechel <littlegee@web.de>
Thu, 22 Mar 2018 23:32:49 +0000 (00:32 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 1 Apr 2018 13:48:01 +0000 (15:48 +0200)
Show the description as a placeholder when an image
is added as a reference.

Resolves: #81235
Releases: master, 8.7
Change-Id: I75363f74ba72bf4fd95b2a2e9a2a061ad250f825
Reviewed-on: https://review.typo3.org/56438
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/backend/Classes/Form/Element/TextElement.php

index e5ea013..83aa33f 100644 (file)
@@ -278,7 +278,7 @@ class TextElement extends AbstractFormElement
             $fullElement[] =            isset($attributes['style']) ? ' style="' . htmlspecialchars($attributes['style']) . '"' : '';
             $fullElement[] =            isset($attributes['maxlength']) ? ' maxlength="' . htmlspecialchars($attributes['maxlength']) . '"' : '';
             $fullElement[] =        '>';
-            $fullElement[] =            htmlspecialchars($itemValue);
+            $fullElement[] =            htmlspecialchars($shortenedPlaceholder);
             $fullElement[] =        '</textarea>';
             $fullElement[] =    '</div>';
             $fullElement[] = '</div>';