Closed (outdated)
Project:
Quiz
Version:
6.x-4.1
Component:
Code - Quiz core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2010 at 16:11 UTC
Updated:
15 Jul 2016 at 21:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pbuyle commentedHere is an updated patch to also select questions without a language (== language neutral) in _quiz_get_random_taxonomy_question_ids().
Comment #2
pbuyle commentedHere is a patch build on the one in #1 (with quiz.test in the 'tests' folder from initial post) that adds language support to the "Manage questions" tab of quiz nodes. Auto-complete has been modified to use language as first argument (and to properly handle '/' in the query). Form validation has been modified to check for language too of added questions. The test case only covers autocomplete.
Comment #3
tutumlum commentedSimply needed to add following lines to quiz.module just after line #2747 :
Tested and it works. If you want to test, you should take quiz newly. Resuming quizzes will not be affected since question list is built before.
Comment #4
pbonnefoi commentedIs this has been ported yet ? I think, the count needs to be also updated on line 2552, but I don't know how to do it...
If you put more questions than questions available in a given language, but still under the number of questions available for a term (no matter what's the language) the function will pass.
Comment #5
pbonnefoi commentedWell actually, the problem isn't there, the $count is alright, the warning message does not show up in a right place. It only appear when the quiz is taken, not when the number of questions is added. quiz.admin.inc, needs to be reviewed (I pasted the code below where the problem is). I'm working on it.
Comment #6
djdevinThis issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.