MDL-30199 qtype numerical etc. Don't require tolerance for answer *.
This commit is contained in:
@@ -264,7 +264,7 @@ class qtype_numerical_edit_form extends question_edit_form {
|
||||
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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user