Skip to content

Commit

Permalink
[BUGFIX] Show correct icon for page types in UserInformationService
Browse files Browse the repository at this point in the history
The page types section of the Compare User View now
displays the correct record type icon, which is already
resolved from the record type items definition.

Additionally, a fallback is added to prevent
a possible undefined array key warning.

Resolves: #102338
Releases: main, 12.4
Change-Id: I405b1933d01c1691fdcc10c15b323f92757365ed
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81701
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Oliver Bartsch <bo@cedev.de>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
Achim Fritz authored and bmack committed Nov 9, 2023
1 parent df0d34a commit 5648797
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -231,7 +231,7 @@ protected function convert(BackendUserAuthentication $user): array
continue;
}
$label = $specialItem['label'];
$icon = $this->iconFactory->mapRecordTypeToIconIdentifier('pages', ['doktype' => $specialItem['icon']]);
$icon = $specialItem['icon'] ?? 'apps-pagetree-page-default';
$data['pageTypes'][] = ['label' => $label, 'value' => $value, 'icon' => $icon];
}

Expand Down

0 comments on commit 5648797

Please sign in to comment.