[BUGFIX] Show image metadata description 06/56506/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>
Wed, 4 Apr 2018 13:18:29 +0000 (15:18 +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/56506
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
typo3/sysext/backend/Classes/Form/Element/TextElement.php

index 2522215..ec5ade9 100644 (file)
@@ -282,7 +282,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>';