[TASK] Simplify checkbox items TCA
TCA shares same keys across different types, and so does "items" with type check, radio and select. The value is usually set for the array key "1". But type check is special in that regard: the value is stored as a bitset. This means, the value is completely unused and shall not be provided for checkboxes. 1. All occurrences of "items => ['1' => '']" removed. 2. When checkboxes only have 1 item and no configuration whatsoever, "items" can be omitted. These constructs are gone now: 'items' => [ [ 0 => '', 1 => '', ], ] Resolves: #95876 Releases: master Change-Id: I3deb96498e3afb8823cd6397e57e268c68774276 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72056 Tested-by:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaCheckboxItems.php 0 additions, 1 deletion...ackend/Classes/Form/FormDataProvider/TcaCheckboxItems.php
- typo3/sysext/backend/Configuration/SiteConfiguration/site_language.php 0 additions, 6 deletions...backend/Configuration/SiteConfiguration/site_language.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php 1 addition, 19 deletions...Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php
- typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php 0 additions, 2 deletions.../sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php
- typo3/sysext/core/Configuration/TCA/be_groups.php 1 addition, 5 deletionstypo3/sysext/core/Configuration/TCA/be_groups.php
- typo3/sysext/core/Configuration/TCA/be_users.php 3 additions, 13 deletionstypo3/sysext/core/Configuration/TCA/be_users.php
- typo3/sysext/core/Configuration/TCA/pages.php 2 additions, 35 deletionstypo3/sysext/core/Configuration/TCA/pages.php
- typo3/sysext/core/Configuration/TCA/sys_category.php 0 additions, 1 deletiontypo3/sysext/core/Configuration/TCA/sys_category.php
- typo3/sysext/core/Configuration/TCA/sys_file_collection.php 0 additions, 6 deletionstypo3/sysext/core/Configuration/TCA/sys_file_collection.php
- typo3/sysext/core/Configuration/TCA/sys_file_reference.php 0 additions, 6 deletionstypo3/sysext/core/Configuration/TCA/sys_file_reference.php
- typo3/sysext/core/Configuration/TCA/sys_file_storage.php 0 additions, 30 deletionstypo3/sysext/core/Configuration/TCA/sys_file_storage.php
- typo3/sysext/core/Configuration/TCA/sys_filemounts.php 0 additions, 7 deletionstypo3/sysext/core/Configuration/TCA/sys_filemounts.php
- typo3/sysext/core/Configuration/TCA/sys_language.php 0 additions, 1 deletiontypo3/sysext/core/Configuration/TCA/sys_language.php
- typo3/sysext/core/Configuration/TCA/sys_news.php 0 additions, 1 deletiontypo3/sysext/core/Configuration/TCA/sys_news.php
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Configuration/TCA/Overrides/tt_content.php 1 addition, 1 deletion...st_datahandler/Configuration/TCA/Overrides/tt_content.php
- typo3/sysext/dashboard/Configuration/TCA/be_dashboards.php 0 additions, 1 deletiontypo3/sysext/dashboard/Configuration/TCA/be_dashboards.php
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_info.php 0 additions, 1 deletion...le/Configuration/TCA/tx_blogexample_domain_model_info.php
- typo3/sysext/frontend/Configuration/TCA/backend_layout.php 0 additions, 1 deletiontypo3/sysext/frontend/Configuration/TCA/backend_layout.php
- typo3/sysext/frontend/Configuration/TCA/fe_groups.php 0 additions, 1 deletiontypo3/sysext/frontend/Configuration/TCA/fe_groups.php
- typo3/sysext/frontend/Configuration/TCA/fe_users.php 0 additions, 1 deletiontypo3/sysext/frontend/Configuration/TCA/fe_users.php
Please register or sign in to comment