Skip to content

Commit

Permalink
Merge branch 'MDL-35693' of git://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Oct 2, 2012
2 parents afbdebe + 1c80e79 commit c07189e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions question/engine/datalib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c07189e

Please sign in to comment.