Skip to content

Commit

Permalink
Merge branch 'hotfix/form-collection-validation'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jul 25, 2012
2 parents 24a2ca1 + c89558e commit 812dd99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/Zend/Form/Element/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 812dd99

Please sign in to comment.