Quiz display wrong quiz category after > 2 attempts and then change category names

Quiz display wrong quiz category after > 2 attempts and then change category names

by Wen Hao Chuang -
Number of replies: 3
One of our faculty members run into this problem and we are able to reproduce it, we are running Moodle 1.5.4+ on our production site. Here is the steps to reproduce this problem:

1. Create a quiz using random questions from a category

2. Deploy the quiz, with at least 2 attempts

3. Change the category names

4. Add another category with new questions

5. Create another quiz using random question from each of the categories whose names you just changed.

6. Notice that the names of the categories on the Quiz creation page are incorrect. (see the attachment)

Is this a known issue? I guess we could fix this professor's issue by going into the database level and manually change the category back, but just wondering if this is considered a bug and if so, whether Moodle 1.7 or 1.8 already fixed it? Thanks!


Attachment Copy_of_wrong_quiz_category.gif
Average of ratings: -
In reply to Wen Hao Chuang

Re: Quiz display wrong quiz category after > 2 attempts and then change category names

by Wen Hao Chuang -
Sorry to reply myself. We did some more testing and the wrong category issue happened without any quiz attempts too..
In reply to Wen Hao Chuang

Re: Quiz display wrong quiz category after > 2 attempts and then change category names

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
What you are seeing on the left is just the name of the random question. The question name is set when the random question is created, and not updated if the category is renamed.

Rest assured that the random question will still pick from the right category. It just looks confusing. To check this, click on the edit link next to the random qustion, on the editing screen you can see the name of the category the question picks from.
In reply to Tim Hunt

Re: Quiz display wrong quiz category after > 2 attempts and then change category names

by Wen Hao Chuang -
Yes you are right that the quiz questions were picking up from the correct quiz category but as you said it is really confusing for our instructors. Is there any way that we could improve the current implementation so that the category will get updated? Should I put in this to Moodle bug tracker as a possible improvement? Many thanks! smile