Skip to content

Commit

Permalink
[TASK] Remove "showRecordFieldList" TCA option in TYPO3 v10.3+
Browse files Browse the repository at this point in the history
It generates a deprecation notice in 10.3+:

> The 'content_types' TCA configuration 'showRecordFieldList' inside the section
> 'interface' is not evaluated anymore and should therefore be removed.
> in typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php line 1721

https://docs.typo3.org/c/typo3/cms-core/10.4/en-us/Changelog/10.3/Feature-88901-RenderAllFieldsInElementInformationController.html
  • Loading branch information
cweiske authored and NamelessCoder committed Oct 23, 2022
1 parent 49863e9 commit d4a987c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Configuration/TCA/content_types.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
defined('TYPO3_MODE') or die();

return [
$data = [
'ctrl' => [
'title' => 'LLL:EXT:flux/Resources/Private/Language/locallang.xlf:content_types',
'descriptionColumn' => 'description',
Expand Down Expand Up @@ -179,3 +179,9 @@
],
'palettes' => []
];

if (!defined('TYPO3_version') || version_compare(TYPO3_version, 10.3, '>=')) {
unset($data['interface']['showRecordFieldList']);
}

return $data;

0 comments on commit d4a987c

Please sign in to comment.