Skip to content

Commit

Permalink
MDL-39978 Essays with files break each attempt builds on last
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed May 31, 2013
1 parent b6f8a93 commit ea07b2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions question/engine/datalib.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ protected function insert_step_data(question_attempt_step $step, $stepid, $conte
foreach ($step->get_all_data() as $name => $value) {
if ($value instanceof question_file_saver) {
$value->save_files($stepid, $context);
}
if ($value instanceof question_response_files) {
$value = (string) $value;
}

Expand Down

0 comments on commit ea07b2d

Please sign in to comment.