Skip to content
Browse files

Fix for #2541

  • Loading branch information...
1 parent 2d1b40b commit 6361e50e005c8cb95494ad8557e03061f86368f2 @davidwindell committed Nov 15, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 library/Zend/Form/Form.php
View
5 library/Zend/Form/Form.php
@@ -559,9 +559,10 @@ protected function prepareValidationGroup(FieldsetInterface $formOrFieldset, arr
$value = $values;
} else {
- if (isset($data[$key])) {
- $this->prepareValidationGroup($fieldset, $data[$key], $validationGroup[$key]);
+ if (!isset($data[$key])) {
+ $data[$key] = array();
}
+ $this->prepareValidationGroup($fieldset, $data[$key], $validationGroup[$key]);
}
}
}

0 comments on commit 6361e50

Please sign in to comment.
Something went wrong with that request. Please try again.