Actions
Bug #76147
closedcheckbox items which was created with itemsProcFunc ignored in datahandler
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.
Actions