MDL-58702 backup: Fix restoration of role mappings labels
authorZig Tan <zig@moodle.com>
Fri, 15 Jun 2018 01:46:29 +0000 (09:46 +0800)
committerZig Tan <zig@moodle.com>
Fri, 15 Jun 2018 01:55:53 +0000 (09:55 +0800)
commite689e4d446013bdbf96530ab3b17ac9dae3cc87b
tree0e2e31abe7b7de62445d1f12a6ce70cb4c25feba
parent9e7c3978895c7cab585c2f5234ca536151d3bef6
MDL-58702 backup: Fix restoration of role mappings labels

Changes:
- Add logic to retrieve all the existing current roles.
- Apply the backup's role shortname by matching on the archetype.
- Added backup lang string 'undefinedrolemapping'.
backup/util/ui/restore_ui_stage.class.php
lang/en/backup.php