Initial situation
I have deactivated the competencies (core_competency | enabled) and the badges (enablebadges) in our system (/admin/settings.php?section=optionalsubsystems).
In the settings for backups and imports for courses, I have also deactivated all possible elements for competencies and badges:
- General backup defaults (/admin/settings.php?section=backupgeneralsettings)
- backup | backup_general_badges
- backup | backup_general_competencies
- General import defaults (/admin/settings.php?section=importgeneralsettings)
- backup | backup_import_competencies
Problem description
- There is no sub-section for badges in the settings for imports. (/admin/settings.php?section=importgeneralsettings)
- When creating backups (/backup/backup.php?id=COURSEID), the point of authority is not displayed, which is correct according to the system settings. I can include bages in the backup. The item is displayed deactivated. The deactivated status is correct according to the course settings. At this point I am wondering why the badges are displayed and the competencies are not, although both are deactivated in the system.
- When I want to import data in a course (/backup/import.php), I do not have the competencies item in the selection, which is correct according to the system settings. I can include badges in the import. This item is displayed as activated. The badges are missing in the import settings (/admin/settings.php?section=importgeneralsettings). So I cannot deactivate the preselection. When comparing badges and competencies, the badges item should be hidden here in order to be consistent.
System
- Moodle 4.5.2+ (Build: 20250214)
Agreed solution
As per this comment explains the scope of this issue is to remove "Badges" from "Backup" and "Import" forms if the "Badges" ("enablebadges" setting) are disabled in "Advanced features". This behaviour will be consistent with "Competencies" same example.