Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 3.5.1, 3.5.2
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_35_STABLE
-
Fixed Branches:MOODLE_35_STABLE, MOODLE_36_STABLE
-
Pull from Repository:
-
Pull 3.5 Branch:
MDL-63260_35 -
Pull 3.5 Diff URL:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
Reproduction steps
- Install Moodle
- Create a course
- Go to Question Bank and create a "True/False" question in the course's default category
- Create a quiz in the course
- Add a "random question" to the quiz using the course's default question category
- Duplicate the quiz
- Duplicate the quiz again
- Duplicate the quiz yet again
Expected result
The mdl_question table contains 5 rows:
- 1 row containing the "True/False" question created in step 3
- 1 row containing the "random question" added in step 5
- 1 row containing the "random question" from duplicating the quiz in step 6
- 1 row containing the "random question" from duplicating the quiz in step 7
- 1 row containing the "random question" from duplicating the quiz in step 8
Actual result
The mdl_question table contains 9 rows:
- 1 row containing the "True/False" question created in step 3
- 1 row containing the "random question" added in step 5
- 1 row containing the "random question" from duplicating the quiz in step 6
- 2 rows containing the "random question" from duplicating the quiz in step 7
- 4 rows containing the "random question" from duplicating the quiz in step 8
The number of questions created through duplicating the quiz seems to have exponential growth.
Attachments
Issue Links
- duplicates
-
MDL-38870 Questions duplicated during import/restores
-
- Open
-
- has been marked as being related by
-
MDL-64799 Backport to 3.4.x? MDL-63260 Duplicating quiz with random question has exponential questions growth
-
- Closed
-
- is a regression caused by
-
MDL-45851 Duplicated quizzes reuse qtype_random (and should not)
-
- Closed
-
- Testing discovered
-
MDL-64595 Quizzes with random questions create duplicate question entries
-
- Open
-