MDL-37638 fix name of duplicate role

This commit is contained in:
Petr Škoda
2013-01-25 19:35:40 +01:00
parent b3778a0dec
commit 019b77cd7e
+1 -1
View File
@@ -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';
}