mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-61407 question: Export step files in privacy
This commit is contained in:
parent
fc5c5306c9
commit
a5c2308443
@ -282,6 +282,7 @@ class provider implements
|
||||
$comment
|
||||
);
|
||||
|
||||
// Export any files associated with the comment files area.
|
||||
writer::with_context($context)
|
||||
->export_area_files(
|
||||
$questionnocontext,
|
||||
@ -293,6 +294,17 @@ class provider implements
|
||||
$stepdata->comment = $behaviour->format_comment($comment, $commentformat);
|
||||
}
|
||||
|
||||
// Export any response files associated with this step.
|
||||
foreach (\question_engine::get_all_response_file_areas() as $filearea) {
|
||||
writer::with_context($context)
|
||||
->export_area_files(
|
||||
$questionnocontext,
|
||||
'question',
|
||||
$filearea,
|
||||
$step->get_id()
|
||||
);
|
||||
}
|
||||
|
||||
$attemptdata->steps[$stepno] = $stepdata;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user