Project

General

Profile

Actions

Bug #87524

closed

lower range in datetime causes empty input fields

Added by David Aichinger about 5 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2019-01-23
Due date:
% Done:

0%

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

Description

When i open records which have date fields that are lower than defined in the range, the input field gets emptied instead of just showing that a validator is violated.

Here my TCA config

'starttime' => array(
    'exclude' => 1,
    'l10n_mode' => 'mergeIfNotBlank',
    'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
    'config' => array(
            'type' => 'input',
        'size' => 13,
        'max' => 20,
        'eval' => 'datetime,required',
        'checkbox' => 0,
        'default' => 0,
        'range' => array(
            'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
        ),
    ),
),

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #94647: TCAdefaults are ignored for inputDateTime fields if lower range lies in futureClosed2021-07-27

Actions
Actions

Also available in: Atom PDF