Merge branch 'wip-MDL-36939-m24' of git://github.com/samhemelryk/moodle into MOODLE_24_STABLE

This commit is contained in:
Dan Poltawski
2012-12-10 11:08:51 +08:00
+7 -1
View File
@@ -101,7 +101,13 @@ class cachestore_addinstance_form extends moodleform {
}
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;