Bug #84012

Toggle all function at TCA control selectCheckBox ignores 'onChange' => 'reload'

Added by Jan-Henrik Hempel over 1 year ago. Updated 5 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2018-02-22
Due date:
% Done:

0%

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']
]
],
],

Related issues

Related to TYPO3 Core - Bug #83457: TCA renderType selectCheckBox didn't check minitems New 2018-01-03

History

#1 Updated by Jan-Henrik Hempel over 1 year ago

  • Related to Bug #83457: TCA renderType selectCheckBox didn't check minitems added

#3 Updated by Benni Mack 5 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

Also available in: Atom PDF