diff --git a/library/Zend/Form/Element/Collection.php b/library/Zend/Form/Element/Collection.php index fc0981019e2..eccfea2cdf8 100644 --- a/library/Zend/Form/Element/Collection.php +++ b/library/Zend/Form/Element/Collection.php @@ -157,6 +157,8 @@ public function setObject($object) } $this->object = $object; + $this->count = count($object); + return $this; }