From 50dd9f3159e55c9abfe211283057b6e3c3936423 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:31:23 +0000 Subject: [PATCH] BUGFIX Adjusted PopupCalendarDateField->Field() to changed underlying CalendarDateField API: Generating the HTML markup without calling parent git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92533 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/PopupDateTimeField.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/forms/PopupDateTimeField.php b/forms/PopupDateTimeField.php index d4c606edd..f01477fe3 100644 --- a/forms/PopupDateTimeField.php +++ b/forms/PopupDateTimeField.php @@ -40,7 +40,12 @@ class PopupDateTimeField extends CalendarDateField { $futureClass = $this->futureOnly ? ' futureonly' : ''; - $innerHTMLDate = parent::HTMLField( $id . '_Date', $this->name . '[Date]', $date ); + $innerHTMLDate = sprintf( + '', + $id . '_Date', + $this->name . '[Date]', + $date + ); $innerHTMLTime = DropdownTimeField::HTMLField( $id . '_Time', $this->name . '[Time]', $time ); return <<