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
#1
Updated by Oliver Hader over 2 years ago
- File 97216_formengine.png 97216_formengine.png added
- File 97216_view.png 97216_view.png added
- Description updated (diff)
- Category set to FormEngine aka TCEforms
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73999
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73999
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74153
Updated by Oliver Hader over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7765a23d8d1ba72994243bf011ce176f68e36077.
Updated by Georg Ringer about 2 years ago
- Related to Bug #98252: TCA Default value for times cannot be set added
Updated by JAKOTA Design Group GmbH over 1 year ago
- Related to Bug #99847: Null value for time field is ignored in BE added
Actions