Skip to content

Commit bae8c55

Browse files
committed
fix: move options files in qtype->move_files
1 parent 2ef7f1b commit bae8c55

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

questiontype.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ public function move_files($questionid, $oldcontextid, $newcontextid) {
113113

114114
$fs = get_file_storage();
115115
$fs->move_area_files_to_new_context($oldcontextid, $newcontextid, 'qtype_questionpy', 'package', $questionid);
116+
$fs->move_area_files_to_new_context(
117+
$oldcontextid,
118+
$newcontextid,
119+
'qtype_questionpy',
120+
constants::FILEAREA_OPTIONS,
121+
$questionid
122+
);
116123
}
117124

118125
/**

0 commit comments

Comments
 (0)