Project

General

Profile

Actions

Bug #16602

closed

eval => 'required,datetime' has no "required" effect, eval => 'datetime,required' renders the value useless

Added by Wolfgang Klinger over 17 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-09-27
Due date:
% Done:

0%

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

Description

TCA config

eval => 'required,datetime' has no "required" effect,
I can simply skip this field

eval => 'datetime,required'
does not render the values, but only displays the unix timestamp (seconds)

Example:

        'user_myext_date' => Array (
            'exclude' => 1,
            'label' => 'LLL:EXT:user_myext/locallang_db.xml:pages.user_myext_date',
            'config' => Array (
                'type' => 'input',
                'size' => '8',
                'max' => '20',
                'eval' => 'required,datetime',
                'checkbox' => '0',
                'default' => '0'
            )
        ),

Can anybody confirm that?

btw "required" for a "text" field would be nice too
(issue imported from #M4296)

Actions #1

Updated by Marc Bastian Heinrichs over 17 years ago

I can confirm this for your TCA definition, but without the 'default'=>'0' it works.

Greets
Bastian

Actions #2

Updated by Urs Widmer over 17 years ago

The Problem is the checkbox Value in unchecked Case.
If you set the Checkbox Value to "" (Empty) Typo3 will require this datetime-field.

You don't need to delete the 'default' element.

eg.
'config' => Array (
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'required,datetime',
'checkbox' => '',
'default' => '0'
)

Regards,
Urs

Actions #3

Updated by Alexander Opitz about 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • PHP Version deleted (4)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #4

Updated by Simon Schaufelberger about 11 years ago

Alexander Opitz wrote:

does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

why don't you try it out yourself? thats easy to reproduce...

Actions #5

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

If you think, that this is the wrong decision, then please write to the mailing list typo3.teams.bugs with issue number and an explanation.

Actions

Also available in: Atom PDF