-
Bug
-
Resolution: Fixed
-
Minor
-
2.5.4, 3.4, 3.9.4, 3.10.1, 3.11, 4.0
-
MOODLE_25_STABLE, MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_34_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MDL-43697-master -
Easy
-
Restoring a backup of a course that had badges deleted restores the deleted badges in the new course.
We have reproduced this in a pure Moodle (no plugins whatsoever) site running 2.5.4.
Steps to reproduce:
- Create a course and add at least one badge (badge does not need criteria).
- Do not add activities to the course.
- Ensure no student has earned any of the badges.
- Delete at least one badge.
- Make a manual backup of the course with below checkboxes checked and all others unchecked:
- Include enrolled users
- Include user role assignments
- Include activities
- Include blocks
- Include filters
- Include comments
- Include badges
- Include calendar events
- Include user completion details
- Include course logs
- Click restore link for Backup file.
- Restore the course into a new course, accepting default restore options.
- In the restored course, go to Course Administration > Badges > Manage Badges.
Expected results - Badges deleted prior to backup do not display in restored course.
Actual results - Badges deleted prior to backup appear in restored course.