From 20922f3b4c8cad5f2f231d8b8b3df4147963b91f Mon Sep 17 00:00:00 2001 From: tiggr <noreply@example.com> Date: Thu, 22 Feb 2024 18:04:17 +0000 Subject: [PATCH] [DOCS] Correct field name in reaction's example To add a custom table to the list of tables, the corresponding TCA field name "table_name" has to be used. Releases: main, 12.4 Resolves: #103181 Change-Id: I1349465f320f882f2cf628a34dd445ceef375f2a Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83096 Tested-by: core-ci <typo3@b13.com> Tested-by: Oliver Bartsch <bo@cedev.de> Reviewed-by: Oliver Bartsch <bo@cedev.de> --- .../Reactions/CreateDatabaseRecord/Index.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/typo3/sysext/reactions/Documentation/Reactions/CreateDatabaseRecord/Index.rst b/typo3/sysext/reactions/Documentation/Reactions/CreateDatabaseRecord/Index.rst index 71adf8e7ed3c..43089b9ccb53 100644 --- a/typo3/sysext/reactions/Documentation/Reactions/CreateDatabaseRecord/Index.rst +++ b/typo3/sysext/reactions/Documentation/Reactions/CreateDatabaseRecord/Index.rst @@ -155,11 +155,11 @@ available in the reaction's table selection, add the table in a corresponding if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('reactions')) { \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem( 'sys_reaction', - 'tx_myextension_domain_model_mytable', + 'table_name', [ - 'LLL:EXT:myext/Resources/Private/Language/locallang.xlf:tx_myextension_domain_model_mytable', - 'tx_myextension_domain_model_mytable', - 'myextension-tx_myextension_domain_model_mytable-icon', + 'label' => LLL:EXT:myext/Resources/Private/Language/locallang.xlf:tx_myextension_domain_model_mytable', + 'value' => tx_myextension_domain_model_mytable', + 'icon' => 'myextension-tx_myextension_domain_model_mytable-icon', ] ); } -- GitLab