Actions
Bug #53640
closedjs validation for datetime + required doesn't work for below 1970
Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend User Interface
Target version:
Start date:
2013-11-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
If an input field got as eval "datetime,required", the validation fails as soon as the given date is below 1970.
if the required is removed, everything is fine.
As an example: use ext:news and the datetime field.
'datetime' => array( 'exclude' => 0, 'l10n_mode' => 'mergeIfNotBlank', 'label' => $ll . 'tx_news_domain_model_news.datetime', 'config' => array( 'type' => 'input', 'size' => 12, 'max' => 20, 'eval' => 'datetime', 'default' => mktime(date('H'), date('i'), 0, date('m'), date('d'), date('Y')) ) ),
tested in master but should be testable in any supported branch
Updated by Vasyl Mosiychuk about 11 years ago
- Assignee set to Georg Ringer
Where should I put this code?
Updated by Georg Ringer almost 11 years ago
in the TCA or just check out ext news
Updated by Mathias Schreiber almost 10 years ago
- Status changed from New to Closed
will continue in #37244, this thing is WIP (finally) :)
Actions