Skip to content

Commit

Permalink
[BUGFIX] Prevent RuntimeException in NewPages view
Browse files Browse the repository at this point in the history
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: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: core-ci <typo3@b13.com>
  • Loading branch information
o-ba committed Mar 7, 2024
1 parent bef9c9a commit f184aac
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -226,7 +226,7 @@ <h2 class="mt-4">
<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>
Expand Down

0 comments on commit f184aac

Please sign in to comment.