-
Bug
-
Resolution: Fixed
-
Major
-
3.3.9, 3.4.5, 3.5, 3.6.1
-
Any
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-63710-master -
There was a patch https://tracker.moodle.org/browse/MDL-37757 which fixed the issue when repository is deleted. But it only works if repository was deleted after applying a patch. We have client that wants to delete course, but not able because repository was deleted (getting invalid repository ID). And patch can't fix that issue.
So ti sum up. There is a patch at https://tracker.moodle.org/browse/MDL-37757
This workflow is fine:
1. Create course with some files using repository
2. Apply patch
3. Disable repository
4. Delete a course
This workflow is failing:
- Create course with some files using repository
2. Disable repository
3. Apply patch
4. Delete a course
Testing instruction:
- revert patch https://tracker.moodle.org/browse/MDL-37757
- create file system repository, check Allow relative files
- Create a file activity in a course. Pick a file from repository and tick 'Create an alias/shortcut to the file'
- Delete repository
- Reapply patch https://tracker.moodle.org/browse/MDL-37757
- Delete a course using file above