Project

General

Profile

Actions

Bug #88450

closed

Default value ist show on datetime fields by readOnly

Added by Kevin Meckl over 5 years ago. Updated over 4 years ago.

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

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

By activate readOnly on datetime fields, the default value ist show, not the value from database.


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #90413: TCA-Configuration: Input-Field with Datetime-frendertype show 'Wrong'-default value in the Backend Closed2020-02-18

Actions
Related to TYPO3 Core - Bug #89967: Invalid date representation when readOnly in TCAClosed2019-12-16

Actions
Actions #1

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

Actions #2

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 table pages

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
Actions #3

Updated by Marcin Sągol about 5 years ago

I can confirm this bug on 8.7.

Actions #4

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
Actions #5

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

Actions #6

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

Actions #7

Updated by Benni Mack over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions #9

Updated by Oliver Bartsch about 4 years ago

  • Related to Bug #89967: Invalid date representation when readOnly in TCA added
Actions

Also available in: Atom PDF