Merge pull request #2670 from sekjal/issue2669

Fixes issue #2669
This commit is contained in:
Ingo Schommer 2013-11-17 12:02:12 -08:00
commit 538f09b94f

View File

@ -78,6 +78,17 @@ class DatetimeField extends FormField {
return $this; return $this;
} }
public function setName($name) {
parent::setName($name);
$this->dateField->setName($name . '[date]');
$this->timeField->setName($name . '[time]');
$this->timezoneField->setName($name . '[timezone]');
return $this;
}
public function FieldHolder($properties = array()) { public function FieldHolder($properties = array()) {
$config = array( $config = array(
'datetimeorder' => $this->getConfig('datetimeorder'), 'datetimeorder' => $this->getConfig('datetimeorder'),