Project

General

Profile

Actions

Bug #76147

closed

checkbox items which was created with itemsProcFunc ignored in datahandler

Added by Oleg Kozlov almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-05-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
On Location Sprint

Description

Is it not possible save dynamically added (itemsProcFunc) checkbox items. It is rendered correct in backend form, but values not saved in database.
There is code for radio element (function checkValueForRadio) -
if ($tcaFieldConf['itemsProcFunc'] && empty($res['value'])) {
$processingService = GeneralUtility::makeInstance(ItemProcessingService::class);
$processedItems = $processingService->getProcessingItems($table, $pid, $field, $this->checkValue_currentRecord,
$tcaFieldConf, $tcaFieldConf['items']);

foreach ($processedItems as $set) {
if ((string)$set[1] === (string)$value) {
$res['value'] = $value;
break;
}
}
}

Seems like similar code for checkboxes should be.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #76509: FormEngine does not allow saving dynamic items and does not preselect dynamic items based on column valueClosed2016-06-07

Actions
Related to TYPO3 Core - Bug #76984: Unsupported declare 'strict_types'Closed2016-07-07

Actions
Related to TYPO3 Core - Bug #76989: Invalid declare strict_types in CMS 7ClosedMarkus Klein2016-07-07

Actions
Actions

Also available in: Atom PDF