Skip to content
Browse files

Merge branch 'w04_MDL-37638_m25_rolecloning' of git://github.com/skod…

…ak/moodle
  • Loading branch information...
2 parents 44a951b + 019b77c commit 502e7853118814b68e5027cb8d90fc8cb1f6dc26 Sam Hemelryk committed Jan 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/roles/lib.php
View
2 admin/roles/lib.php
@@ -661,7 +661,7 @@ public function is_submission_valid() {
public function make_copy() {
$this->roleid = 0;
unset($this->role->id);
- $this->role->name .= ' ' . get_string('copyasnoun');
+ $this->role->name = role_get_name($this->role, null, ROLENAME_ORIGINAL) . ' ' . get_string('copyasnoun');
$this->role->shortname .= 'copy';
}

0 comments on commit 502e785

Please sign in to comment.
Something went wrong with that request. Please try again.