Permalink
Browse files

Merge branch 'MDL-30199_21' of git://github.com/timhunt/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
stronk7 committed Nov 16, 2011
2 parents 373c70e + 5255100 commit 96ec3502f0dfcbe1910f9c8e721bab2b086dfffc
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/type/numerical/edit_numerical_form.php
@@ -264,7 +264,7 @@ protected function validate_answers($data, $errors) {
if ($data['fraction'][$key] == 1) {
$maxgrade = true;
}
- if (!is_numeric($data['tolerance'][$key])) {
+ if ($answer !== '*' && !is_numeric($data['tolerance'][$key])) {
$errors['tolerance['.$key.']'] =
get_string('mustbenumeric', 'qtype_calculated');
}

0 comments on commit 96ec350

Please sign in to comment.