[BUGFIX] Consider default recipients in preselection check
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / Configuration / TCA / sys_workspace_stage.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'title',
5 'tstamp' => 'tstamp',
6 'sortby' => 'sorting',
7 'title' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage',
8 'adminOnly' => true,
9 'rootLevel' => 1,
10 'hideTable' => true,
11 'delete' => 'deleted',
12 'typeicon_classes' => [
13 'default' => 'mimetypes-x-sys_workspace'
14 ],
15 'versioningWS_alwaysAllowLiveEdit' => true
16 ],
17 'columns' => [
18 'title' => [
19 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.title',
20 'config' => [
21 'type' => 'input',
22 'size' => 20,
23 'max' => 30,
24 'eval' => 'required,trim'
25 ]
26 ],
27 'responsible_persons' => [
28 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.responsible_persons',
29 'config' => [
30 'type' => 'group',
31 'internal_type' => 'db',
32 'allowed' => 'be_users,be_groups',
33 'prepend_tname' => true,
34 'size' => 3,
35 'maxitems' => 100,
36 'autoSizeMax' => 20,
37 ]
38 ],
39 'default_mailcomment' => [
40 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.default_mailcomment',
41 'config' => [
42 'type' => 'text',
43 'rows' => 5,
44 'cols' => 30
45 ]
46 ],
47 'parentid' => [
48 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.parentid',
49 'config' => [
50 'type' => 'passthrough'
51 ]
52 ],
53 'parenttable' => [
54 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.parenttable',
55 'config' => [
56 'type' => 'passthrough'
57 ]
58 ],
59 'notification_defaults' => [
60 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
61 'config' => [
62 'type' => 'group',
63 'internal_type' => 'db',
64 'allowed' => 'be_users,be_groups',
65 'prepend_tname' => true,
66 'size' => 3,
67 'maxitems' => 100,
68 'autoSizeMax' => 20,
69 ]
70 ],
71 'allow_notificaton_settings' => [
72 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
73 'config' => [
74 'type' => 'check',
75 'items' => [
76 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
77 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
78 ],
79 'default' => 3,
80 'cols' => 1,
81 ]
82 ],
83 'notification_preselection' => [
84 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
85 'config' => [
86 'type' => 'check',
87 'items' => [
88 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
89 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
90 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
91 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.responsiblePersons', ''],
92 ],
93 'default' => 8,
94 'cols' => 1,
95 ]
96 ]
97 ],
98 'palettes' => [
99 'stage' => [
100 'showitem' => 'allow_notificaton_settings, notification_preselection,',
101 ]
102 ],
103 'types' => [
104 '0' => ['showitem' => '
105 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
106 title,responsible_persons,
107 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.notification_settings,
108 --palette--;;stage, notification_defaults, default_mailcomment,
109 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
110 ']
111 ]
112 ];