Hi Everyone
I've upgraded to 2.4.0 and got a validation error on DateField types (screenshot attached).
Code:
static $db = array(
...
'Attention' => "Enum('Normal,High', 'Normal')",
'StartDate' => 'Date',
'EndDate' => 'Date',
'PPPNr' => 'Text',
...
);
function getCMSFields() {
$fields = parent::getCMSFields();
$dateField = new DateField('StartDate', 'Start date');
$dateField->setConfig('showcalendar', true);
$fields->addFieldToTab('Root.Content.ProjectData', $dateField);
...
The values in the input fields were placed by the date selection tool. Only values in the Format "May, 5 2010" are working. JavaScript request was 200 OK:
...
validationError('EndDate', 'Please enter a valid time format.', 'validation');
StatusMessage('Validation failed', 'bad');Behaviour.addLoader(hideLoading);
...
Does anybody has a solution?
Thanks for your help.