mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-64332 questions: idnumber should not prevent easy duplication
This commit is contained in:
parent
cb7f6a6f99
commit
d6388d0acf
@ -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;
|
||||
}
|
||||
|
||||
|
@ -18,8 +18,8 @@ Feature: A teacher can duplicate questions in the question bank
|
||||
| contextlevel | reference | name |
|
||||
| Course | C1 | Test questions |
|
||||
And the following "questions" exist:
|
||||
| questioncategory | qtype | name | questiontext |
|
||||
| Test questions | essay | Test question to be copied | Write about whatever you want |
|
||||
| questioncategory | qtype | name | questiontext | idnumber |
|
||||
| Test questions | essay | Test question to be copied | Write about whatever you want | qid |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Question bank > Questions" in current page administration
|
||||
|
Loading…
x
Reference in New Issue
Block a user