Updated: Problem in Moodle: copying quizzes and course question bank may fail

Updated: Problem in Moodle: copying quizzes and course question bank may fail

av Moodle 1 -
Antal svar: 0

 

Update 28.10. at 7 p.m.: Wednesday 23.10. update has been rolled back. Copying quizzes and the question bank no longer generates incorrect copies of questions. You can copy content normally again. Instead, it is possible that copying a Moodle quiz or course fails with the error
"Failed to find an answer matching <conditional answer> in the question_answers database table". 
If this happens, please contact the IT helpdesk and let us know

  • from which course you tried to copy quiz/questions
  • what was the target course.

     

Original post 28.10 at 9am:

Last Wednesday 23.10., un update was made to TUNI Moodle, which brought with it a new bug: when you copy a quiz in the Moodle course or when you copy a quiz/question bank from an old Moodle course to the same Moodle course for the second time, new copies are created of all the questions in the course question bank, i.e. the size of the question bank doubles. Avoid copying quizzes until this Moodle bug is fixed.

New empty Moodle courses are not affected by this bug: You can copy the contents of the old Moodle course to the new course once without problems.

The fault is due to Moodle's method of copying quizzes: if the quiz contains even one question from the general course  question bank, Moodle copies all the questions in the course question bank with the quiz, regardless of how many of them are used in the quiz to be copied. Normally Moodle recognizes identical questions and doesn't make unnecessary question copy, but now because of this new bug, identification doesn't work.

If you have copied quizzes between 23.10. 5.30pm and 28.10. 6pm, you will unfortunately have to manually clean out the extra and unnecessary question copies from the question bank of your Moodle course.

We apologize for any inconvenience and extra work caused by this Moodle bug.