Browse files

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

…OODLE_23_STABLE
  • Loading branch information...
2 parents 05ab343 + 0222cd9 commit d0154d299680a0a5e17420e453aa1aa2e93b01e8 @danpoltawski danpoltawski committed Oct 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 question/engine/datalib.php
View
1 question/engine/datalib.php
@@ -117,6 +117,7 @@ public function insert_question_attempt(question_attempt $qa, $context) {
$record->responsesummary = $qa->get_response_summary();
$record->timemodified = time();
$record->id = $this->db->insert_record('question_attempts', $record);
+ $qa->set_database_id($record->id);
foreach ($qa->get_step_iterator() as $seq => $step) {
$this->insert_question_attempt_step($step, $record->id, $seq, $context);

0 comments on commit d0154d2

Please sign in to comment.