TCA eval required on date field does not work
i'm trying to make a date field required ( using a TCA like this:
'tx_cxeurizon_publish_date' => array (
'label' => 'my date field',
'config' => array (
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'required,date',
'checkbox' => '0',
'default' => '0'
but is seems to not work!
in mysql the field is of "int" type (like it should for all timestamp values...
note: i have ext date2cal (6.0.3) installed, but it doesn't work even if i deinstall it...
(issue imported from #M5956)
Updated by Oliver Hader almost 14 years ago
- since "required" had no effect on the evaluation/manipulation of data, this is ignored now in evalfunc (the required-flags are set in TBE_EDITOR!)
- empty date/datetime fields had a default value of "0" (string!) and this was considered as a filled field and thus no required-error appeared
- bug #17436 has to be changed after this patch was committed to SVN
Furthermore there is a small test extension which enables you to reproduce this bug.