#84012Toggle all function at TCA control selectCheckBox ignores 'onChange' => 'reload'
Description
The TCA control selectCheckBox has a “Toggle all” / “Revert selection” feature, which selects or unckecks all items in the list.
This “Toggle all” function does not trigger a form reload, if ‘onChange’ => ‘reload’ is set in TCA.
TCA example:
‘fam_fa_thisismycustomfield’ => [
‘displayCond’ => ‘USER:Motor\\Myext\\Utility\\TcaUtility->topicsDisplayCondition:topics:fam_fa’,
‘onChange’ => ‘reload’,
‘exclude’ => true,
‘label’ => ‘LLL:EXT:myext/Resources/Private/Language/locallang_tx_ext_lang.xlf:fam_fa_thisismycustomfield,
‘config’ => [
‘type’ => ‘select’,
‘renderType’ => ‘selectCheckBox’,
// TODO https://forge.typo3.org/issues/83457
‘minitems’ => ‘1’,
‘items’ => [
[‘LLL:EXT:myext/Resources/Private/Language/locallang_tx_ext_lang.xlf:fam_fa_thisismycustomfield.access’, ‘access’],
[‘LLL:EXT:myext/Resources/Private/Language/locallang_tx_ext_lang.xlf:fam_fa_thisismycustomfield.benefits’, ‘benefits’],
[‘LLL:EXT:myext/Resources/Private/Language/locallang_tx_ext_lang.xlf:fam_fa_thisismycustomfield.cash-benefits’, ‘cash-benefits’],
[‘LLL:EXT:myext/Resources/Private/Language/locallang_tx_ext_lang.xlf:fam_fa_thisismycustomfield.tax-benefits’, ‘tax-benefits’],
[‘others’, ‘others’]
]
],
],Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Toggle all function at TCA control selectCheckBox ignores 'onChange' => 'reload' Resolves: #84012 Releases: main