-
Bug
-
Resolution: Fixed
-
Major
-
3.1.7, 3.2, 3.2.4, 3.3.1
-
MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
-
wip-
MDL-57649-master -
-
3.4 Sprint 2
I noticed this when reviewing the code for the lesson module (I'm reviewing it because I'm working in Web Services for the mobile app).
https://github.com/moodle/moodle/blob/master/mod/lesson/locallib.php#L2400
The itemid for the file areas page_answers and page_responses is not the pageid, is the page's answer id.
The way to solve this would be iterate over all the pages answers and then delete those are files using the answer id as itemid.
foreach ($lessonanswers as $answer){
|
$fs->delete_area_files($context->id, 'mod_lesson', 'page_answers', $answer->id);
|
$fs->delete_area_files($context->id, 'mod_lesson', 'page_responses', $answer->id);
|
}
|
- is a regression caused by
-
MDL-32870 No filepicker for Lesson questions answers and responses (feedback)
- Closed