Commit 22082c47 authored by Markus Klein's avatar Markus Klein Committed by Christian Kuhn
Browse files

[BUGFIX] Show correct group label for system records

The New Record Wizard shows the correct header for
the "system" group again.

The change preserves the group's title and icon once set, so extensions
can't override predefined groups.

Resolves: #98413
Related: #98036
Releases: main, 11.5
Change-Id: I9c052fa234431969840fa3c8dac3720c286140cd
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75846


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 2f082566
......@@ -479,8 +479,8 @@ class NewRecordController
$groupName = 'system';
}
}
$this->tRows[$groupName]['title'] = $groupTitles[$groupName] ?? $nameParts[1] ?? $title;
$this->tRows[$groupName]['icon'] = $iconFile[$groupName] ?? $iconFile['system'] ?? '';
$this->tRows[$groupName]['title'] = $this->tRows[$groupName]['title'] ?? $groupTitles[$groupName] ?? $nameParts[1] ?? $title;
$this->tRows[$groupName]['icon'] = $this->tRows[$groupName]['icon'] ?? $iconFile[$groupName] ?? $iconFile['system'] ?? '';
$this->tRows[$groupName]['html'][$table] = $this->renderLink(htmlspecialchars($lang->sL($v['ctrl']['title'])), $table, $this->id);
}
}
......
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