Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Add inline comments #5121

Merged
merged 2 commits into from Oct 20, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions library/Zend/Form/Element/Collection.php
Expand Up @@ -211,12 +211,14 @@ public function populateValues($data)
if ($this->targetElement instanceof FieldsetInterface) {
foreach ($this->byName as $name => $fieldset) {
if (isset($data[$name])) {
/* @var $fieldset FieldsetInterface */
$fieldset->populateValues($data[$name]);
unset($data[$name]);
}
}
} else {
foreach ($this->byName as $name => $element) {
/* @var $element ElementInterface */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead add ElementInterface[] to byName property

$element->setAttribute('value', $data[$name]);
unset($data[$name]);
}
Expand Down