Commit f2981575 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Don't ignore TCA 'ctrl' 'groupName'

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

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: Benni Mack's avatarBenni Mack <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
parent c2df29b3
......@@ -435,7 +435,7 @@ class NewRecordController
$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 = '';
Supports Markdown
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