Bug #88450
closedDefault value ist show on datetime fields by readOnly
100%
Description
By activate readOnly on datetime fields, the default value ist show, not the value from database.
Files
Updated by Georg Ringer over 5 years ago
- Status changed from New to Needs Feedback
can you test that on a clean master? can't reproduce it there. I modified the field lastUpdated
of table pages
Updated by Kevin Meckl over 5 years ago
Georg Ringer wrote:
can you test that on a clean master? can't reproduce it there. I modified the field
lastUpdated
of tablepages
Hello Georg, for pages it worked but not for a custom TCA, although I used the same configuration. The only exception is the database field, which uses pages for lastUpdated int(10) and for pdf_text_last_update we use datetime.
Here is our configuration:
'pdf_text_last_update' => [
'exclude' => true,
'label' => 'LLL:EXT:sbk_archive/Resources/Private/Language/locallang_db.xlf:tx_sbkarchive_domain_model_article.pdf_text_last_update',
'config' => [
'dbType' => 'datetime',
'type' => 'input',
'renderType' => 'inputDateTime',
'size' => 12,
'eval' => 'datetime',
'default' => null,
'readOnly' => true
],
],
pdf_text_last_update datetime DEFAULT NULL
Updated by Dieter Porth almost 5 years ago
- Related to Bug #90413: TCA-Configuration: Input-Field with Datetime-frendertype show 'Wrong'-default value in the Backend added
Updated by Gerrit Code Review over 4 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63626
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.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/+/63738
Updated by Benni Mack over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b88a0af685ecb6770e634d30b43a4b0a03637f7c.
Updated by Oliver Bartsch about 4 years ago
- Related to Bug #89967: Invalid date representation when readOnly in TCA added