mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-39978 Essays with files break each attempt builds on last
This commit is contained in:
parent
b6f8a93642
commit
ea07b2d622
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,8 @@ class question_engine_data_mapper {
|
||||||
foreach ($step->get_all_data() as $name => $value) {
|
foreach ($step->get_all_data() as $name => $value) {
|
||||||
if ($value instanceof question_file_saver) {
|
if ($value instanceof question_file_saver) {
|
||||||
$value->save_files($stepid, $context);
|
$value->save_files($stepid, $context);
|
||||||
|
}
|
||||||
|
if ($value instanceof question_response_files) {
|
||||||
$value = (string) $value;
|
$value = (string) $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue