Project

General

Profile

Actions

Bug #84012

open

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

Added by Jan-Henrik Hempel about 6 years ago. Updated about 5 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
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']
]
],
],

Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Jan-Henrik Hempel about 6 years ago

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

Updated by Benni Mack about 5 years ago

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

Also available in: Atom PDF