Actions
Bug #84012
openToggle all function at TCA control selectCheckBox ignores 'onChange' => 'reload'
Status:
New
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2018-02-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
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']
]
],
],
Actions