Skip to content

Commit

Permalink
[BUGFIX] Migrate select items in NewMultiplePagesController
Browse files Browse the repository at this point in the history
Resolves: #100489
Related: #99739
Releases: main
Change-Id: I83b9632156d8f061ab3f0b710eb3639c95fb03b3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78527
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
  • Loading branch information
nhovratov authored and sbuerk committed Apr 7, 2023
1 parent 237bda8 commit 9040901
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -203,10 +203,10 @@ protected function getTypeSelectData(int $pageUid): array
$groupLabel = '';
foreach ($availableDoktypes as $doktypeData) {
// If it is a group, save the group label for the children underneath
if ($doktypeData[1] === '--div--') {
$groupLabel = $doktypeData[0];
if ($doktypeData['value'] === '--div--') {
$groupLabel = $doktypeData['label'];
} else {
if (in_array($doktypeData[1], $allowedDoktypes)) {
if (in_array($doktypeData['value'], $allowedDoktypes)) {
$groupedData[$groupLabel][] = $doktypeData;
}
}
Expand Down
Expand Up @@ -147,7 +147,7 @@ <h2>
<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.2}")}' value="{type.1}">{f:translate(key: '{type.0}')}</option>
<option data-icon='{core:icon(identifier: "{type.icon}")}' value="{type.value}">{f:translate(key: '{type.label}')}</option>
</f:for>
</optgroup>
</f:for>
Expand Down

0 comments on commit 9040901

Please sign in to comment.