From a81398060ff206bc7c7c1aff4b148e2ceadc7499 Mon Sep 17 00:00:00 2001 From: Gerrit Mohrmann <28714641+codegm@users.noreply.github.com> Date: Sat, 5 Aug 2023 20:51:37 +0200 Subject: [PATCH] [TASK] Remove not needed TCA config internal_type (#2169) In TYPO3v11 'db' is the default setting, in v12 it is deprecated and not evaluated anymore. Co-authored-by: GM --- Configuration/FlexForms/flexform_category_list.xml | 2 -- Configuration/FlexForms/flexform_news.xml | 7 ------- Configuration/FlexForms/flexform_news_date_menu.xml | 4 ---- Configuration/FlexForms/flexform_news_detail.xml | 4 ---- Configuration/FlexForms/flexform_news_list.xml | 5 ----- Configuration/FlexForms/flexform_news_search_form.xml | 2 -- Configuration/FlexForms/flexform_news_selected_list.xml | 5 ----- Configuration/FlexForms/flexform_tag_list.xml | 4 ---- Configuration/TCA/Overrides/sys_category.php | 2 -- Configuration/TCA/Overrides/z_misc_12_adoptions.php | 7 ------- Configuration/TCA/tx_news_domain_model_news.php | 3 --- .../Tutorials/ExtendNews/ExtensionBasedOnNews/Index.rst | 1 - 12 files changed, 46 deletions(-) diff --git a/Configuration/FlexForms/flexform_category_list.xml b/Configuration/FlexForms/flexform_category_list.xml index edb8bfc016..a04ee5e047 100644 --- a/Configuration/FlexForms/flexform_category_list.xml +++ b/Configuration/FlexForms/flexform_category_list.xml @@ -54,7 +54,6 @@ group - db pages 3 50 @@ -126,7 +125,6 @@ group - db pages 1 1 diff --git a/Configuration/FlexForms/flexform_news.xml b/Configuration/FlexForms/flexform_news.xml index 9e98b146a8..7ebfc9c761 100644 --- a/Configuration/FlexForms/flexform_news.xml +++ b/Configuration/FlexForms/flexform_news.xml @@ -307,7 +307,6 @@ group - db tx_news_domain_model_news 1 1 @@ -349,7 +348,6 @@ group - db pages 3 50 @@ -405,7 +403,6 @@ group - db tx_news_domain_model_news 5 @@ -435,7 +432,6 @@ group - db pages 1 1 @@ -450,7 +446,6 @@ group - db pages 1 1 @@ -465,7 +460,6 @@ group - db pages 1 1 @@ -504,7 +498,6 @@ group - db tx_news_domain_model_tag 3 0 diff --git a/Configuration/FlexForms/flexform_news_date_menu.xml b/Configuration/FlexForms/flexform_news_date_menu.xml index c97cc5e4a5..7768d15608 100644 --- a/Configuration/FlexForms/flexform_news_date_menu.xml +++ b/Configuration/FlexForms/flexform_news_date_menu.xml @@ -190,7 +190,6 @@ group - db pages 3 50 @@ -262,7 +261,6 @@ group - db pages 1 1 @@ -277,7 +275,6 @@ group - db pages 1 1 @@ -292,7 +289,6 @@ group - db pages 1 1 diff --git a/Configuration/FlexForms/flexform_news_detail.xml b/Configuration/FlexForms/flexform_news_detail.xml index 224e24854f..d01cbb77e3 100644 --- a/Configuration/FlexForms/flexform_news_detail.xml +++ b/Configuration/FlexForms/flexform_news_detail.xml @@ -19,7 +19,6 @@ group - db tx_news_domain_model_news 1 1 @@ -61,7 +60,6 @@ group - db pages 3 50 @@ -133,7 +131,6 @@ group - db pages 1 1 @@ -148,7 +145,6 @@ group - db pages 1 1 diff --git a/Configuration/FlexForms/flexform_news_list.xml b/Configuration/FlexForms/flexform_news_list.xml index 61b55b4b66..994622e651 100644 --- a/Configuration/FlexForms/flexform_news_list.xml +++ b/Configuration/FlexForms/flexform_news_list.xml @@ -275,7 +275,6 @@ group - db pages 3 50 @@ -347,7 +346,6 @@ group - db pages 1 1 @@ -362,7 +360,6 @@ group - db pages 1 1 @@ -377,7 +374,6 @@ group - db pages 1 1 @@ -416,7 +412,6 @@ group - db tx_news_domain_model_tag 3 0 diff --git a/Configuration/FlexForms/flexform_news_search_form.xml b/Configuration/FlexForms/flexform_news_search_form.xml index 49a01247bc..73f518522b 100644 --- a/Configuration/FlexForms/flexform_news_search_form.xml +++ b/Configuration/FlexForms/flexform_news_search_form.xml @@ -20,7 +20,6 @@ group - db pages 1 1 @@ -35,7 +34,6 @@ group - db tx_news_domain_model_tag 3 0 diff --git a/Configuration/FlexForms/flexform_news_selected_list.xml b/Configuration/FlexForms/flexform_news_selected_list.xml index d2fc927af7..f45307d3ac 100644 --- a/Configuration/FlexForms/flexform_news_selected_list.xml +++ b/Configuration/FlexForms/flexform_news_selected_list.xml @@ -19,7 +19,6 @@ group - db tx_news_domain_model_news 3 1 @@ -110,7 +109,6 @@ group - db pages 1 1 @@ -125,7 +123,6 @@ group - db pages 1 1 @@ -140,7 +137,6 @@ group - db pages 1 1 @@ -179,7 +175,6 @@ group - db tx_news_domain_model_tag 3 0 diff --git a/Configuration/FlexForms/flexform_tag_list.xml b/Configuration/FlexForms/flexform_tag_list.xml index dceb97f09a..6af058f750 100644 --- a/Configuration/FlexForms/flexform_tag_list.xml +++ b/Configuration/FlexForms/flexform_tag_list.xml @@ -73,7 +73,6 @@ group - db pages 3 50 @@ -143,7 +142,6 @@ group - db pages 1 1 @@ -158,7 +156,6 @@ group - db pages 1 1 @@ -174,7 +171,6 @@ group - db tx_news_domain_model_tag 3 0 diff --git a/Configuration/TCA/Overrides/sys_category.php b/Configuration/TCA/Overrides/sys_category.php index 9d85d41142..5d4a8e8f6f 100644 --- a/Configuration/TCA/Overrides/sys_category.php +++ b/Configuration/TCA/Overrides/sys_category.php @@ -88,7 +88,6 @@ 'label' => $ll . 'tx_news_domain_model_category.single_pid', 'config' => [ 'type' => 'group', - 'internal_type' => 'db', 'allowed' => 'pages', 'size' => 1, 'maxitems' => 1, @@ -108,7 +107,6 @@ 'label' => $ll . 'tx_news_domain_model_category.shortcut', 'config' => [ 'type' => 'group', - 'internal_type' => 'db', 'allowed' => 'pages', 'size' => 1, 'maxitems' => 1, diff --git a/Configuration/TCA/Overrides/z_misc_12_adoptions.php b/Configuration/TCA/Overrides/z_misc_12_adoptions.php index 6e3b78735d..a95e3828c4 100644 --- a/Configuration/TCA/Overrides/z_misc_12_adoptions.php +++ b/Configuration/TCA/Overrides/z_misc_12_adoptions.php @@ -41,13 +41,6 @@ ], ]; - // internal type - foreach (['sys_category' => ['single_pid', 'shortcut'], 'tx_news_domain_model_news' => ['l10n_parent', 'related_from', 'related']] as $table => $fields) { - foreach ($fields as $field) { - unset($GLOBALS['TCA'][$table]['columns'][$field]['config']['internal_type']); - } - } - // required fields foreach (['tx_news_domain_model_link' => ['uri'], 'tx_news_domain_model_news' => ['title', 'externalurl'], 'tx_news_domain_model_tag' => ['title']] as $table => $fields) { foreach ($fields as $field) { diff --git a/Configuration/TCA/tx_news_domain_model_news.php b/Configuration/TCA/tx_news_domain_model_news.php index cc5b52c3a4..fb1c4afc1a 100644 --- a/Configuration/TCA/tx_news_domain_model_news.php +++ b/Configuration/TCA/tx_news_domain_model_news.php @@ -168,7 +168,6 @@ 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent', 'config' => [ 'type' => 'group', - 'internal_type' => 'db', 'allowed' => 'tx_news_domain_model_news', 'size' => 1, 'maxitems' => 1, @@ -408,7 +407,6 @@ 'label' => $ll . 'tx_news_domain_model_news.related', 'config' => [ 'type' => 'group', - 'internal_type' => 'db', 'allowed' => 'tx_news_domain_model_news', 'foreign_table' => 'tx_news_domain_model_news', 'MM_opposite_field' => 'related_from', @@ -432,7 +430,6 @@ 'label' => $ll . 'tx_news_domain_model_news.related_from', 'config' => [ 'type' => 'group', - 'internal_type' => 'db', 'foreign_table' => 'tx_news_domain_model_news', 'allowed' => 'tx_news_domain_model_news', 'size' => 5, diff --git a/Documentation/Tutorials/ExtendNews/ExtensionBasedOnNews/Index.rst b/Documentation/Tutorials/ExtendNews/ExtensionBasedOnNews/Index.rst index 2f4174646e..da503502cb 100644 --- a/Documentation/Tutorials/ExtendNews/ExtensionBasedOnNews/Index.rst +++ b/Documentation/Tutorials/ExtendNews/ExtensionBasedOnNews/Index.rst @@ -262,7 +262,6 @@ The syntax of ``FlexForms`` is identical to the one of ``TCA`` with the only dif group - db pages 3 50