We are experiencing the following problem when restoring courses:
Teachers are restoring course backups on moodle3.1 that were done automatically without users on moodle 2.7. Under certain circunstancies (that we couldn't figure out which yet) on the last step of the restore process it is displayed the warning "The role in the backup file cannot be mapped to any of the roles that you are allowed to assign." (4x) and 4 dropdown menus with "Empty" string. Pressing continue the restore proceeds and apparently there are no errors....
- We always set teachers not allowed to assign any role on moodle;
- The backups don't have any users nor users' information;
- The warning setence is incomplete because it is missing "$role->name". Ex: "The [role->name] role in the backup file cannot..."
Why is this warning appearing to teachers? It seems not critical but... this interface does not make any sense. We are starting to restore more than 2000 courses and we get a bit worried when we find something behaving weird. Did anyone have this problem before?