[BUGFIX] Set default values in TCA of sys_file_collection 38/55638/4
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 9 Feb 2018 21:18:21 +0000 (22:18 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 11 Feb 2018 12:46:03 +0000 (13:46 +0100)
Resolves: #83838
Releases: master, 8.7
Change-Id: I3f27f3e610fd4eae7ac37349a0cf4ff03faa1189
Reviewed-on: https://review.typo3.org/55638
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/core/Configuration/TCA/sys_file_collection.php

index e4d8649..21c3fd4 100644 (file)
@@ -70,7 +70,8 @@ return [
                     ['', 0]
                 ],
                 'foreign_table' => 'sys_file_collection',
-                'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
+                'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)',
+                'default' => 0,
             ]
         ],
         'l10n_diffsource' => [
@@ -147,7 +148,8 @@ return [
                 'foreign_table_where' => 'ORDER BY sys_file_storage.name',
                 'size' => 1,
                 'minitems' => 0,
-                'maxitems' => 1
+                'maxitems' => 1,
+                'default' => 0,
             ]
         ],
         'folder' => [
@@ -182,7 +184,8 @@ return [
                         'expandAll' => true,
                         'showHeader' => true,
                     ]
-                ]
+                ],
+                'default' => 0,
             ]
         ]
     ],