Skip to content
Snippets Groups Projects
Commit 9f7ac6a5 authored by Georg Ringer's avatar Georg Ringer Committed by Christian Kuhn
Browse files

[BUGFIX] Resolve display name for shortcuts

The shortcut button requires the resolved name as display name and not
the LLL path.

Resolves: #103903
Releases: main, 12.4
Change-Id: I59e38bf9c40f0a940fecb6ac3178b2976f168069
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84398


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent c945dc76
Branches
Tags
No related merge requests found
......@@ -203,7 +203,7 @@ final class PageTsConfigRecordsOverviewController
$buttonBar = $view->getDocHeaderComponent()->getButtonBar();
$shortcutButton = $buttonBar->makeShortcutButton()
->setRouteIdentifier($currentModule->getIdentifier())
->setDisplayName($currentModule->getTitle())
->setDisplayName($this->getLanguageService()->sL($currentModule->getTitle()))
->setArguments(['id' => $pageId]);
$buttonBar->addButton($shortcutButton, ButtonBar::BUTTON_POSITION_RIGHT);
}
......
......@@ -157,7 +157,7 @@ class InfoModuleController
// Shortcut
$shortcutButton = $buttonBar->makeShortcutButton()
->setRouteIdentifier($this->currentModule->getIdentifier())
->setDisplayName($this->currentModule->getTitle())
->setDisplayName($this->getLanguageService()->sL($this->currentModule->getTitle()))
->setArguments(['id' => $this->id]);
$buttonBar->addButton($shortcutButton, ButtonBar::BUTTON_POSITION_RIGHT);
}
......
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