mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Deep cloning for DateTimeField
This commit is contained in:
parent
b65180a7f6
commit
26141718ec
@ -279,6 +279,11 @@ class DatetimeField extends FormField {
|
||||
|
||||
return $field;
|
||||
}
|
||||
|
||||
public function __clone() {
|
||||
$this->dateField = clone $this->dateField;
|
||||
$this->timeField = clone $this->timeField;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user