MDL-34640 question repsponse files: remaining tidy up of this code.

This commit is contained in:
Tim Hunt
2013-03-30 21:16:18 +00:00
parent d0782585c8
commit dc1ee5cb29
5 changed files with 103 additions and 66 deletions
+1 -1
View File
@@ -1285,7 +1285,7 @@ class question_attempt {
$autosavedsequencenumber = null;
while ($record && $record->questionattemptid == $questionattemptid && !is_null($record->attemptstepid)) {
$sequencenumber = $record->sequencenumber;
$nextstep = question_attempt_step::load_from_records($records, $record->attemptstepid, $qa->get_question(), $record->contextid);
$nextstep = question_attempt_step::load_from_records($records, $record->attemptstepid, $qa->get_question()->get_type_name());
if ($sequencenumber < 0) {
if (!$autosavedstep) {