Skip to content
Snippets Groups Projects
Commit f184aac1 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Prevent RuntimeException in NewPages view

Page types might contain a static string as
label instead of a locallang key. To prevent
a RuntimeException, the static string is used
as the default now.

Resolves: #103315
Releases: main, 12.4
Change-Id: I50858fe6500766e5a66b83e9e72be82c35218ca2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83294


Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent bef9c9a5
Branches
Tags
No related merge requests found
......@@ -226,7 +226,7 @@
<f:for each="{line.pageTypes}" as="typegroup" key="group">
<optgroup label="{f:translate(key: '{group}')}">
<f:for each="{typegroup}" as="type">
<option data-icon='{core:icon(identifier: "{type.icon}")}' value="{type.value}">{f:translate(key: '{type.label}')}</option>
<option data-icon='{core:icon(identifier: type.icon)}' value="{type.value}">{f:translate(key: type.label, default: type.label)}</option>
</f:for>
</optgroup>
</f:for>
......
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