[!!!][TASK] Remove option $TYPO3_CONF_VARS[BE][accessListRenderMode] 39/35939/4
authorBenjamin Mack <benni@typo3.org>
Fri, 9 Jan 2015 21:23:41 +0000 (22:23 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 10 Jan 2015 11:56:50 +0000 (12:56 +0100)
With the recent overhaul to optimize the selection
of access lists (permissions) in BE user / BE groups
via checkbox,
the option $TYPO3_CONF_VARS[BE][accessListRenderMode]
which was set to "checkbox" already, can be removed
as it only serves as a shorthand function
to override TCA settings for be_users and be_groups.

In the front of having strong defaults and a simpler
option list, the option is removed and all values
within be_users/be_groups are set to
renderMode=checkbox directly.

Resolves: #64226
Releases: master
Change-Id: Ic6076fb44b6bb6874041a22ee30069457a17d5a0
Reviewed-on: http://review.typo3.org/35939
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Configuration/TCA/be_groups.php
typo3/sysext/core/Configuration/TCA/be_users.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-64226-OptionAccessListRenderModeRemoved.rst [new file with mode: 0644]
typo3/sysext/install/Classes/Service/SilentConfigurationUpgradeService.php
typo3/sysext/workspaces/Configuration/TCA/sys_workspace.php

index b2514c3..13ed802 100644 (file)
@@ -590,7 +590,6 @@ return array(
                'interfaces' => 'backend',                                                      // This determines which interface options is available in the login prompt and in which order (All options: ",backend,frontend")
                'loginNewsTitle' => '',                                                         // Define alternative header message for the LoginNews. If this var is empty, the default header "Important messages:" is displayed.
                'notificationPrefix' => '[TYPO3 Note]',                         // String: Used to prefix the subject of mails sent in the taskcenter
-               'accessListRenderMode' => 'checkbox',                           // Can be "singlebox", "checkbox" or blank. Refers to the "renderMode" for the selector boxes in be-groups configuration.
                'explicitADmode' => 'explicitDeny',                                     // Sets the general allow/deny mode for selector box values. Value can be either "explicitAllow" or "explicitDeny", nothing else!
                'niceFlexFormXMLtags' => TRUE,                                          // If set, the flexform XML will be stored with meaningful tags which can be validated with DTD schema. If you rely on custom reading of the XML from pre-4.0 versions you should set this to FALSE if you don't like to change your reader code (internally it is insignificant since \TYPO3\CMS\Core\Utility\GeneralUtility::xml2array() doesn't care for the tags if the index-attribute value is set)
                'flexFormXMLincludeDiffBase' => TRUE,                           // If set, an additional tag with index "vXX.vDEFbase" is created for translations in flexforms holding the value of the default language when translation was changed. Used to show diff of value. This setting will change whether the system thinks flexform XML looks clean. For example when FALSE XX.vDEFbase fields will be removed in cleaning while accepted if TRUE (of course)
index 816f49f..083091a 100644 (file)
@@ -126,10 +126,9 @@ return array(
                                        array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
                                        array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
                                ),
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
+                               'renderMode' => 'checkbox',
                                'size' => 17,
                                'maxitems' => 17,
-                               'itemListStyle' => 'width:500px',
                                'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,moveFile,files_copy,deleteFile'
                        )
                ),
@@ -151,7 +150,7 @@ return array(
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => 20,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
+                               'renderMode' => 'checkbox',
                                'iconsInOptionTags' => 1
                        )
                ),
@@ -163,7 +162,7 @@ return array(
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => 100,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
+                               'renderMode' => 'checkbox',
                                'iconsInOptionTags' => 1
                        )
                ),
@@ -175,7 +174,7 @@ return array(
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => 100,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
+                               'renderMode' => 'checkbox',
                                'iconsInOptionTags' => 1
                        )
                ),
@@ -187,8 +186,7 @@ return array(
                                'size' => '25',
                                'maxitems' => 1000,
                                'autoSizeMax' => 50,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
-                               'itemListStyle' => 'width:500px'
+                               'renderMode' => 'checkbox'
                        )
                ),
                'explicit_allowdeny' => array(
@@ -243,7 +241,7 @@ return array(
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => 100,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
+                               'renderMode' => 'checkbox',
                                'iconsInOptionTags' => 1
                        )
                ),
index b1c6292..793303b 100644 (file)
@@ -254,10 +254,9 @@ return array(
                                        array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
                                        array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
                                ),
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
+                               'renderMode' => 'checkbox',
                                'size' => 17,
                                'maxitems' => 17,
-                               'itemListStyle' => 'width:500px',
                                'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,moveFile,files_copy,deleteFile'
                        )
                ),
@@ -311,7 +310,7 @@ return array(
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => '100',
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
+                               'renderMode' => 'checkbox',
                                'iconsInOptionTags' => 1
                        )
                ),
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-64226-OptionAccessListRenderModeRemoved.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-64226-OptionAccessListRenderModeRemoved.rst
new file mode 100644 (file)
index 0000000..d5b44fb
--- /dev/null
@@ -0,0 +1,42 @@
+============================================================================
+Breaking: #64226 - Option $TYPO3_CONF_VARS[BE][accessListRenderMode] removed
+============================================================================
+
+Description
+===========
+
+The ``$GLOBALS[TYPO3_CONF_VARS][BE][accessListRenderMode]`` option, which acted as a shorthand function
+to set permission-related fields for modules and excludeFields, was removed.
+
+All corresponding fields in TCA tables be_users and be_groups are set to the already-default value "checkbox"
+given in the DefaultConfiguration.php file.
+
+Impact
+======
+
+All respective fields will show up as a checkbox selection within FormEngine (implying the value
+renderMethod=checkbox).
+
+
+Affected installations
+======================
+
+Installations having this option set to something different than "checkbox" will result in a having the fields
+displayed as checkboxes.
+
+Migration
+=========
+
+Choose between the default value "checkbox" (no change required then) or set the following values inside the
+file ``typo3conf/extTables.php`` to the option of your needs.
+
+.. code-block:: php
+
+       $GLOBALS['TCA']['be_users']['columns']['file_permissions']['config']['renderMode'] = 'singlebox';
+       $GLOBALS['TCA']['be_users']['columns']['userMods']['config']['renderMode'] = 'singlebox';
+       $GLOBALS['TCA']['be_groups']['columns']['file_permissions']['config']['renderMode'] = 'singlebox';
+       $GLOBALS['TCA']['be_groups']['columns']['pagetypes_select']['config']['renderMode'] = 'singlebox';
+       $GLOBALS['TCA']['be_groups']['columns']['tables_select']['config']['renderMode'] = 'singlebox';
+       $GLOBALS['TCA']['be_groups']['columns']['tables_modify']['config']['renderMode'] = 'singlebox';
+       $GLOBALS['TCA']['be_groups']['columns']['non_exclude_fields']['config']['renderMode'] = 'singlebox';
+       $GLOBALS['TCA']['be_groups']['columns']['userMods']['config']['renderMode'] = 'singlebox';
index b20f6df..c2ca05b 100644 (file)
@@ -68,6 +68,8 @@ class SilentConfigurationUpgradeService {
                'INSTALL/wizardDone/TYPO3\\CMS\\Install\\Updates\\TruncateSysFileProcessedFileTable',
                // #63818
                'BE/staticFileEditPath',
+               // #64226
+               'BE/accessListRenderMode'
        );
 
        /**
index 54f1ac6..e3f77b2 100644 (file)
@@ -93,7 +93,7 @@ return array(
                                'size' => '3',
                                'maxitems' => 25,
                                'autoSizeMax' => 10,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
+                               'renderMode' => 'checkbox',
                                'iconsInOptionTags' => 1
                        )
                ),