[TASK] Change checkboxes in sys_workspace 70/56770/4
authorIngo Nolden <dev@nolden.org>
Fri, 20 Apr 2018 20:43:23 +0000 (22:43 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Thu, 26 Apr 2018 14:58:54 +0000 (16:58 +0200)
Two checkboxes are changed to new rendertype checkboxToggle.

Resolves: #84830
Related: #84793
Releases: master
Change-Id: I23c6a23c0080fa7968245cb4f527fea3ac322c45
Reviewed-on: https://review.typo3.org/56770
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/workspaces/Configuration/TCA/sys_workspace.php

index 6a62102..71dd064 100644 (file)
@@ -103,14 +103,28 @@ return [
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_workspace.freeze',
             'config' => [
                 'type' => 'check',
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_workspace.freeze',
             'config' => [
                 'type' => 'check',
-                'default' => 0
+                'renderType' => 'checkboxToggle',
+                'default' => 0,
+                'items' => [
+                    [
+                        0 => '',
+                        1 => '',
+                    ]
+                ],
             ]
         ],
         'live_edit' => [
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_workspace.live_edit',
             'config' => [
                 'type' => 'check',
             ]
         ],
         'live_edit' => [
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_workspace.live_edit',
             'config' => [
                 'type' => 'check',
-                'default' => 0
+                'renderType' => 'checkboxToggle',
+                'default' => 0,
+                'items' => [
+                    [
+                        0 => '',
+                        1 => '',
+                    ]
+                ],
             ]
         ],
         'swap_modes' => [
             ]
         ],
         'swap_modes' => [