From c6275611ee5e5dbf73f1254ccf0854879a97af6b Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 22 Jan 2009 01:52:55 +0000 Subject: [PATCH] BUGFIX Defined jsValidation() and validate() so that inherited validation from DateField doesn't break PopupDateTimeField - this still needs fixing, and PopupDateTimeField shouldn't inherit from CalendarDateField git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70609 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/PopupDateTimeField.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/forms/PopupDateTimeField.php b/forms/PopupDateTimeField.php index c5658a5d8..72de64503 100644 --- a/forms/PopupDateTimeField.php +++ b/forms/PopupDateTimeField.php @@ -6,6 +6,21 @@ */ class PopupDateTimeField extends CalendarDateField { + /** + * @todo js validation needs to be implemented. + * @see sapphire/forms/DateField#jsValidation() + */ + function jsValidation() { + } + + /** + * @todo php validation needs to be implemented. + * @see sapphire/forms/DateField#validate($validator) + */ + function validate() { + return true; + } + function Field() { Requirements::css( SAPPHIRE_DIR . '/css/PopupDateTimeField.css' );