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
This commit is contained in:
Ingo Schommer 2009-11-21 02:31:23 +00:00
parent 7ecf3fe5ec
commit 50dd9f3159

View File

@ -40,7 +40,12 @@ class PopupDateTimeField extends CalendarDateField {
$futureClass = $this->futureOnly ? ' futureonly' : '';
$innerHTMLDate = parent::HTMLField( $id . '_Date', $this->name . '[Date]', $date );
$innerHTMLDate = sprintf(
'<input type="text" id="%s" name="%s" value="%s" />',
$id . '_Date',
$this->name . '[Date]',
$date
);
$innerHTMLTime = DropdownTimeField::HTMLField( $id . '_Time', $this->name . '[Time]', $time );
return <<<HTML