Skip to content

Commit

Permalink
[BUGFIX] Don't ignore TCA 'ctrl' 'groupName'
Browse files Browse the repository at this point in the history
The new records controller (list modul "+" button) tries
to group records. TCA 'ctrl' property 'groupName'
can be used to hint this grouping.

Current code overrides TCA groupName with split magic
based on table name, though. The patch fixes this.

Resolves: #98036
Related: #95366
Releases: main, 11.5
Change-Id: Ief6cff81a8d9523285d95cf423b608f55a8ddab0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75813
Tested-by: Falk Gebauer <fgebauer@3pc.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Falk Gebauer <fgebauer@3pc.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
lolli42 committed Sep 21, 2022
1 parent a5fd2a7 commit 56198c2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -481,7 +481,7 @@ protected function renderNewRecordControls(): void
$groupName = $v['ctrl']['groupName'] ?? null;
$title = (string)($v['ctrl']['title'] ?? '');
if (!isset($iconFile[$groupName]) || $nameParts[0] === 'tx' || $nameParts[0] === 'tt') {
$groupName = $nameParts[1] ?? null;
$groupName = $groupName ?? $nameParts[1] ?? null;
// Try to extract extension name
if ($groupName) {
$_EXTKEY = '';
Expand Down

0 comments on commit 56198c2

Please sign in to comment.