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
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75802


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
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