Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-37638 fix name of duplicate role

  • Loading branch information...
commit 4fb6eeb518843364bbfb8c659de39d58f2d30e06 1 parent df93b15
Petr Skoda skodak authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  admin/roles/lib.php
2  admin/roles/lib.php
@@ -661,7 +661,7 @@ public function is_submission_valid() {
661 661 public function make_copy() {
662 662 $this->roleid = 0;
663 663 unset($this->role->id);
664   - $this->role->name .= ' ' . get_string('copyasnoun');
  664 + $this->role->name = role_get_name($this->role, null, ROLENAME_ORIGINAL) . ' ' . get_string('copyasnoun');
665 665 $this->role->shortname .= 'copy';
666 666 }
667 667

0 comments on commit 4fb6eeb

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