Permalink
Browse files

BUG Deep cloning for DateTimeField

  • Loading branch information...
1 parent b65180a commit 26141718ecdf3f3ab03664a93ebc7b4d449d0b45 @chillu chillu committed Nov 30, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 forms/DatetimeField.php
@@ -279,6 +279,11 @@ public function performReadonlyTransformation() {
return $field;
}
+
+ public function __clone() {
+ $this->dateField = clone $this->dateField;
+ $this->timeField = clone $this->timeField;
+ }
}
/**

0 comments on commit 2614171

Please sign in to comment.