Merge branch 'w04_MDL-37638_m24_rolecloning' of git://github.com/skodak/moodle into MOODLE_24_STABLE

This commit is contained in:
Sam Hemelryk
2013-01-28 17:59:48 +13:00
+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';
}