MDL-64332 questions: idnumber should not prevent easy duplication

This commit is contained in:
Tim Hunt
2018-12-06 14:41:58 +00:00
parent d09dc52b0a
commit 343f4e9d56
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -178,6 +178,7 @@ if ($id) {
if ($makecopy) {
// If we are duplicating a question, add some indication to the question name.
$question->name = get_string('questionnamecopy', 'question', $question->name);
$question->idnumber = null;
$question->beingcopied = true;
}