[TYPO3-core] RFC: Bug 5956: TCA eval required on date field does not work

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Tue Aug 7 16:33:46 CEST 2007

Oliver Hader schrieb:
> Empty date fields are not marked es required because the default value
> of these fields is mostly "0". Since this is seen as string, TBE_EDITOR
> returns a true value on a check. The solution is to send an additional
> flag 'isDateTime' in t3lib_TCEforms to TBE_EDITOR. If it's set,
> TBE_EDITOR knows, that the string "0" is a blank value in this case.

If we call it isPositiveInteger/isPosInt, can it then be used for required 
non-zero ints as well?


More information about the TYPO3-team-core mailing list