-
Bug
-
Resolution: Fixed
-
Minor
-
3.4, 3.5.3, 3.6
-
MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-60972-master_delete_section_files -
If a image is embedded into the description text for a course section, the image is stored in {files} table with component = course and filearea = section. As far as i can see, this entry is not removed from {files} table, when section is deleted.
Steps to check:
- Embed an image into sections description text.
- Image is stored in mdl_files table with context = [context of course], fileare = "section" and itemid = [id of section]
- Delete this section.
- Check the mdl_files table, the file remains in mdl_files, it will also not been removed by cleanup tasks as long as the (course-) context is still valid (i. e. as long as the course is not deleted).
Background: Point 4 is a problem for us, because we have developed a new plugin that searches for files to add copy right notices and this section files would be found but on the other hand not really used in moodle.
Proposal: We may remove the area files instantly, when the section is removed.
- has been marked as being related by
-
MDL-64311 Better file management
- Open