Add local setName() function to DatetimeField, which also sets Name
on the constituent DateField, TimeField and timezoneField.
This commit is contained in:
Ian Walls 2013-11-15 14:18:48 -05:00
parent 802b64db20
commit b906442a9c

View File

@ -77,6 +77,17 @@ class DatetimeField extends FormField {
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()) {
$config = array(