1043 Posts in 379 Topics by 373 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1567 Views |
-
Upgrading to 2.4: Validation error on DateField

10 May 2010 at 6:57pm
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.
-
Re: Upgrading to 2.4: Validation error on DateField

10 May 2010 at 7:02pm
Found a workaround here:
http://www.silverstripe.org/general-questions/show/282914#post282914
| 1567 Views | ||
|
Page:
1
|
Go to Top |

