From 019b77cd7eedb872409b28496c4a5c7eac8bf930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Fri, 25 Jan 2013 19:35:40 +0100 Subject: [PATCH] MDL-37638 fix name of duplicate role --- admin/roles/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/roles/lib.php b/admin/roles/lib.php index 60acdf996bf..2166a670170 100644 --- a/admin/roles/lib.php +++ b/admin/roles/lib.php @@ -661,7 +661,7 @@ class define_role_table_advanced extends capability_table_with_risks { 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'; }