Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'wip-MDL-36939-m25' of git://github.com/samhemelryk/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Dec 10, 2012
2 parents 845774b + 7d18285 commit 7689a58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cache/forms.php
Expand Up @@ -101,7 +101,13 @@ public function validation($data, $files) {
}

if (method_exists($this, 'configuration_validation')) {
$errors = $this->configuration_validation($data, $files);
$newerrors = $this->configuration_validation($data, $files, $errors);
// We need to selectiviliy merge here
foreach ($newerrors as $element => $error) {
if (!array_key_exists($element, $errors)) {
$errors[$element] = $error;
}
}
}

return $errors;
Expand Down

0 comments on commit 7689a58

Please sign in to comment.