diff --git a/library/Zend/Form/Element/Collection.php b/library/Zend/Form/Element/Collection.php index b1ce19f81cd..e3cc6c7491e 100644 --- a/library/Zend/Form/Element/Collection.php +++ b/library/Zend/Form/Element/Collection.php @@ -171,8 +171,10 @@ public function populateValues($data) if ($this->targetElement instanceof FieldsetInterface) { foreach ($this->byName as $name => $fieldset) { - $fieldset->populateValues($data[$name]); - unset($data[$name]); + if (isset($data[$name])) { + $fieldset->populateValues($data[$name]); + unset($data[$name]); + } } } else { foreach ($this->byName as $name => $element) {