-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.5
-
MOODLE_401_STABLE
Hi All,
I have identified a few issues/features that occur when a quiz in one course uses questions (not selected randomly) from the "The default category for questions shared in context 'CourseName'" Question bank Category in a quiz (quiz1), and that quiz is imported into a new course (course2).
A number of things occur
- Users with editing permissions cannot edit any questions in the quiz (quiz1) in the new course (course2) - this appears to be a feature, as the questions can only be edited in the original course (course1)
- The questions do not appear in the question bank in the new course (course2), again this could be a feature to indicate that the questions are to be edited in the original course (course1) and not the new course (course2)
However, if the user created their own question categories in the original course (course1), and the course is imported into a new course (course2), and that new course is imported into another (course3) then the categories and all the questions within them will seem to duplicate
- first time around, the first import, all the question bank categories will import into the new course (course2) with only the two features occurring
- if the new courses is then imported into another (course3), course3 will import all the question bank categories from both course1 and course2, the question bank categorises will seem to duplicate
- I found this by adding new questions to my own categories in course1, after importing course2 into course3, if found that course3 contained question categories from both course1 and course3.
- if you repeat this again and import course3 into course4, you will then import all the question bank categories from course3 and course1
- the questions will still exist in quiz1, but they can't be edited and do not exist in any of the question bank categories in the new courses, they only can be edited in the original course.
If a user adds a new question to the original "The default category for questions shared in context 'Course1'" in course3 (as this is added to course3 during the import), and this question is added quiz2, and course3 is imported into course4 and course4 is imported into course5. Course5 will contain all the questions in the question bank categories from course3 and course4
If the original quiz selects the questions randomly from "The default category for questions shared in context 'Course1'", and course1 is imported into course2:
- the questions in quiz1 will exist in quiz1 in course2 but they cannot be edited in the quiz, and they do not exist in the question bank in course2
- if course2 is imported into course3 the categories are not duplicated, it only imports the question bank categories from course2, however as above, the questions in the quiz cannot be edited and do not exist in the question bank
Lastly, if no quizzes use questions from the "The default category for questions shared in context 'Course1'" then no duplication of question categories (or import of question categories from at least 2 courses) occurs.
Can someone investigate this further and find a way to prevent user created question categories from being imported from the original course (course1) and the course they are intending to import the question categories from?
As this process has created multiple categories of the same name containing the same questions - we are ending up with very large question banks. I don't know how long the issue has existed for.
The expectation from importing a course into another is that the new course only contains the question categories from the course they are importing from, and not any other courses.