-
Bug
-
Resolution: Fixed
-
Critical
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
Steps to reproduce:
A)
- In the question bank, create a true-false, question with text 'This question is ready to use', Correct answer 'True', and State 'Ready'.
- Create a quiz, and add this question. Ensure that the version to use is 'Always latest'.
- Edit the question to add a second version. Change the right answer to 'False' and state to Draft.
- Preview the quiz.
Expected result: to get the question right, you need to answer True, becuase only 'Ready' question versions should be considered by 'Always latest'.
Actual result: you get v2, and so True gets marked wrong.
Also, on the quiz Questions page, the question text from v2 is shown, and the versions drop-down include v2.
B)
- In the question bank, create a true-false, question with text 'This question is ready to use', Correct answer 'True', and State 'Ready'.
- Edit the question to add a second version. Change the right answer to 'False' and state to Draft.
- Create a quiz, and choose add from question bank.
Expected result: You can choose to add the True-false question, because it has a non-draft version.
Actual result: question does not appear in the dialogue.
Some of the SQL in mod/quiz/classes/question/bank/qbank_helper.php, especially in get_always_latest_version_question_ids, needs to be tweaked.
We shoudl also check with Random questions. Again, random questions should only select ready versions.
- caused a regression
-
MDL-76843 Quiz statistics task invalid input syntax for type bigint: "s178604" errors
-
- Closed
-
- Discovered while testing
-
MDL-73808 Moodle 4.0 question bank upgrade uses a lot of memory and is slow
-
- Closed
-
- is blocked by
-
MDL-73763 Fix indexes on question_references and question_set_references
-
- Closed
-
-
MDL-74309 The functions quiz_retrieve_slot_tags and quiz_retrieve_slot_tag_ids are not used, and so should be deleted
-
- Closed
-
- Testing discovered
-
MDL-74431 get_all_question_types_used does not correctly consider random tags when $includepotential is true
-
- Open
-
-
MDL-74452 Quiz and question versions: confusing errors if all versions of a question are draft
-
- Closed
-
-
MDL-74470 Edit quiz page no longer shows useful information about random questions
-
- Closed
-