mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
commit
538f09b94f
@ -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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user