Commit 01626d64 authored by Georg Ringer's avatar Georg Ringer Committed by Andreas Fernandez
Browse files

[BUGFIX] Respect argument showLabel in AbstractButtonViewHelper

The argument `showLabel` must be used while creating a button.

Resolves: #88408
Releases: master, 9.5
Change-Id: I5bfcc25d03aac9da6ca11b651658749bf25d7bf1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60789

Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarJosef Glatz <josefglatz@gmail.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarJosef Glatz <josefglatz@gmail.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 0031cb2c
......@@ -89,6 +89,7 @@ abstract class AbstractButtonViewHelper extends AbstractViewHelper
private static function addDefaultAttributes(AbstractButton $button, array $arguments, RenderingContextInterface $renderingContext): void
{
$button->setShowLabelText($arguments['showLabel']);
if (isset($arguments['title'])) {
$button->setTitle($arguments['title']);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment