[BUGFIX] Make categories required for category related menus 84/56684/2
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 16 Apr 2018 10:19:42 +0000 (12:19 +0200)
committerFrans Saris <franssaris@gmail.com>
Mon, 16 Apr 2018 13:38:15 +0000 (15:38 +0200)
Set the minitems of categories of the the menu types "Categorized content"
and "Categorized pages" to 1 to force editors to fill out this field.

Resolves: #84738
Releases: master, 8.7
Change-Id: I84962e35ac1cffe34e1cd1abb0234a4e201eccd6
Reviewed-on: https://review.typo3.org/56684
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/frontend/Configuration/TCA/tt_content.php

index 0b8ef05..e3463a8 100644 (file)
@@ -1523,6 +1523,11 @@ return [
                 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
             ',
             'columnsOverrides' => [
+                'selected_categories' => [
+                    'config' => [
+                        'minitems' => 1,
+                    ]
+                ],
                 'category_field' => [
                     'config' => [
                         'itemsProcConfig' => [
@@ -1556,6 +1561,11 @@ return [
                 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
             ',
             'columnsOverrides' => [
+                'selected_categories' => [
+                    'config' => [
+                        'minitems' => 1,
+                    ]
+                ],
                 'category_field' => [
                     'config' => [
                         'itemsProcConfig' => [