[BUGFIX] Fix wrong type in "rootLevel" option 52/55852/2
authorArmin Vieweg <armin@v.ieweg.de>
Wed, 21 Feb 2018 09:52:09 +0000 (10:52 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 21 Feb 2018 11:36:01 +0000 (12:36 +0100)
Several system tables used a wrong type for ctrl option "rootLevel"
in TCA. By definition in TCAref "rootLevel" is from type integer.

Resolves: #83990
Branches: master
Change-Id: Ic49464ce428a1d9a928f90231c77e0d445789ee7
Reviewed-on: https://review.typo3.org/55852
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php
typo3/sysext/core/Configuration/TCA/sys_file.php
typo3/sysext/core/Configuration/TCA/sys_file_metadata.php
typo3/sysext/core/Configuration/TCA/sys_file_storage.php
typo3/sysext/core/Configuration/TCA/sys_history.php
typo3/sysext/core/Configuration/TCA/sys_log.php
typo3/sysext/core/Configuration/TCA/sys_news.php
typo3/sysext/extensionmanager/Configuration/TCA/tx_extensionmanager_domain_model_extension.php
typo3/sysext/extensionmanager/Configuration/TCA/tx_extensionmanager_domain_model_repository.php

index 42da7bb..beb3181 100644 (file)
@@ -491,7 +491,7 @@ class TcaSelectItemsTest extends UnitTestCase
                     'fooTable' => [
                         'ctrl' => [
                             'title' => 'fooTableTitle',
-                            'rootLevel' => true,
+                            'rootLevel' => 1,
                             'security' => [
                                 'ignoreRootLevelRestriction' => true,
                             ],
@@ -526,7 +526,7 @@ class TcaSelectItemsTest extends UnitTestCase
                     'fooTable' => [
                         'ctrl' => [
                             'title' => 'fooTableTitle',
-                            'rootLevel' => true,
+                            'rootLevel' => 1,
                         ],
                         'columns' => [
                             'bar' => [
index 298b74b..34e4e68 100644 (file)
@@ -6,7 +6,7 @@ return [
         'tstamp' => 'tstamp',
         'type' => 'type',
         'hideTable' => true,
-        'rootLevel' => true,
+        'rootLevel' => 1,
         'default_sortby' => 'name ASC',
         'typeicon_column' => 'type',
         'typeicon_classes' => [
index 78e06a9..35d5426 100644 (file)
@@ -8,7 +8,7 @@ return [
         'cruser_id' => 'cruser_id',
         'type' => 'file:type',
         'hideTable' => true,
-        'rootLevel' => true,
+        'rootLevel' => 1,
         'languageField' => 'sys_language_uid',
         'transOrigPointerField' => 'l10n_parent',
         'transOrigDiffSourceField' => 'l10n_diffsource',
index a632806..b3d9f58 100644 (file)
@@ -9,7 +9,7 @@ return [
         'default_sortby' => 'name',
         'delete' => 'deleted',
         'descriptionColumn' => 'description',
-        'rootLevel' => true,
+        'rootLevel' => 1,
         'versioningWS_alwaysAllowLiveEdit' => true, // Only have LIVE records of file storages
         'enablecolumns' => [],
         'typeicon_classes' => [
index d27fbeb..03f8472 100644 (file)
@@ -5,7 +5,7 @@ return [
         'label' => 'tablename',
         'tstamp' => 'tstamp',
         'adminOnly' => true,
-        'rootLevel' => true,
+        'rootLevel' => 1,
         'hideTable' => true,
         'default_sortby' => 'uid DESC',
     ],
index 5f8758c..dc4234d 100644 (file)
@@ -5,7 +5,7 @@ return [
         'label' => 'details',
         'tstamp' => 'tstamp',
         'adminOnly' => true,
-        'rootLevel' => true,
+        'rootLevel' => 1,
         'hideTable' => true,
         'default_sortby' => 'uid DESC',
     ],
index 68c4a30..27faa49 100644 (file)
@@ -7,7 +7,7 @@ return [
         'crdate' => 'crdate',
         'cruser_id' => 'cruser_id',
         'adminOnly' => true,
-        'rootLevel' => true,
+        'rootLevel' => 1,
         'delete' => 'deleted',
         'enablecolumns' => [
             'disabled' => 'hidden',
index f168052..fef6df8 100644 (file)
@@ -5,7 +5,7 @@ return [
         'label' => 'uid',
         'default_sortby' => '',
         'hideTable' => true,
-        'rootLevel' => true,
+        'rootLevel' => 1,
         'adminOnly' => true,
         'typeicon_classes' => [
             'default' => 'empty-icon'
index b854e10..ed16a81 100644 (file)
@@ -5,7 +5,7 @@ return [
         'label' => 'uid',
         'default_sortby' => '',
         'hideTable' => true,
-        'rootLevel' => true,
+        'rootLevel' => 1,
         'adminOnly' => true,
         'typeicon_classes' => [
             'default' => 'empty-icon'