Actions
Bug #97216
closedTime value "midnight" (00:00) is not accepted
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2022-03-21
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Having the following TCA configuration for a time field, allows to persist data via DataHandler
, but then resets the value 00:00:00
to null
in FormEngine
.
'end_time' => [ 'exclude' => true, 'label' => 'LLL:EXT:site/Resources/Private/Language/locallang_db.xlf:tx_site_domain_model_eventperformance.end_time', 'config' => [ 'dbType' => 'time', 'type' => 'input', 'renderType' => 'inputDateTime', 'size' => 12, 'eval' => 'time,required', 'default' => null, ], ],
\TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowDateTimeFields::addData
$result['databaseRow'][$column] = '00:00:00'
$dateTimeFormats[$columnConfig['config']['dbType']]['empty'] = '00:00:00'
- resetting value to
null
, since the given (correct) value is considered "to be empty"
Files
Actions