Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5928 from Ponsjuh/master

Fixed notice on binding entity to form
  • Loading branch information...
commit 1f93594225a8c183927e3413762f33831fd5d2d8 2 parents aa809a3 + 3509d18
@weierophinney weierophinney authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 library/Zend/Form/Element/DateTimeSelect.php
View
4 library/Zend/Form/Element/DateTimeSelect.php
@@ -220,6 +220,10 @@ public function setValue($value)
}
}
+ if (is_null($value)) {
+ $value = new PhpDateTime();
+ }
+
if ($value instanceof PhpDateTime) {
$value = array(
'year' => $value->format('Y'),
Please sign in to comment.
Something went wrong with that request. Please try again.