To reproduce:
- Create a course with any type of badge (activity completion for example) and enable it.
- Create another badge with the criteria that you are awarded the first badge, this badge can be enabled or left disabled
- Back up the course with user data and badges selected
- Restore the course as a new course
- Check the restored course's badges.
Expected result: The new 2nd badge is created with criteria that it is awarded when you are awarded the new 1st badge.
Actual result: The 2nd badge says under criteria "Complete: Badge with id {$a} does not exist."
It appears when the course is restored the record created in the badge_criteria_param table is bad, it has a critid (and a proper record in the corresponding badge_criteria table) but the name column is an empty string and the value column is null.
- duplicates
-
MDL-64702 Badges does not include related data in a privacy export
-
- Closed
-