MDL-38538 question autosave: fix sequencecheck handling.

This commit is contained in:
Tim Hunt
2013-04-04 15:32:32 +01:00
parent e3485c5f75
commit c7fbfe46f9
5 changed files with 55 additions and 6 deletions
+2 -2
View File
@@ -623,7 +623,7 @@ class question_usage_by_activity {
$qa->get_control_field_name('sequencecheck'), PARAM_INT, $postdata);
if (is_null($sequencecheck)) {
return false;
} else if ($sequencecheck != $qa->get_num_steps()) {
} else if ($sequencecheck != $qa->get_sequence_check_count()) {
throw new question_out_of_sequence_exception($this->id, $slot, $postdata);
} else {
return true;
@@ -642,7 +642,7 @@ class question_usage_by_activity {
$qa->get_control_field_name('sequencecheck'), PARAM_INT, $postdata);
if (is_null($sequencecheck)) {
return false;
} else if ($sequencecheck != $qa->get_num_steps()) {
} else if ($sequencecheck != $qa->get_sequence_check_count()) {
return false;
} else {
return true;