Steps to reproduce:
- Add a random block to a course eg an html-block.
- Edit permissions
- Remove role "Student".
Result: Errormessage: [[confirmroleundefined,core_role]] is displayed and the role is not removed.
Expected result: The role should have been removed.
Sidenote: If a new attempt is tried without adding the block, the role is correctly removed, so reproduce you need to always add the block as step 1.
Workaround: It possible to use the advanced override dropdown to bypass the issue.