If the multichoice question field is set to Full HTML and user is not logged in when taking the quiz, the question appears as "n/a"
If the field is set to Filtered HTML all works OK, and question is displayed
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | multichoice_input_filter.patch | 613 bytes | grobemo |
Comments
Comment #1
grobemo commentedFound it. The bug is in multichoice.module. (There may be similar problems in other question type modules.)
The question is rendered in multichoice_render_question_form at line 591 in the 6.x-2.1. It calls check_markup(), but it's checking the current user's permissions for the input filter, which is why Full HTML causes problems.
The fix is simple (probably easier than applying the patch). Change this:
to this:
By adding a third parameter (FALSE), you're telling check_markup not to check whether the current user has permission to access the filter with which the question was created.
Comment #2
Anonymous (not verified) commentedJust implimented the fix, works like a dream
Testing logic
Changed question field to Full HTML and tested Question Missing
made code change
Question visible
Many thanks for such a simple fix. Now quetsions can be more than just text :)
Comment #3
mbutcher commentedExcellent! Thanks! This will go into 2.2.
I really appreciate the work each of you did. Thanks.
Matt
Comment #4
Anonymous (not verified) commentedopening new issue and re- closing this one
Comment #5
summit commentedsubscribing, greetings, Martijn
Comment #6
Anonymous (not verified) commentedAssociated Issue opened http://drupal.org/node/371730
Comment #7
jhoodThanks! Wish I found this sooner!
-John Hood
Comment #8
mbutcher commentedThis is fixed in Quiz 3 dev, and will be in Alpha 2.
Comment #10
quinns commentedWe are still experiencing this issue using Drupal 6.22 and Quiz 6.x-4.3. Users who do not have access to "Full HTML" input format are not able to see the Quiz questions. These are Multiple Choice questions.
Comment #11
robbm commentedSame problem here. And with truefalse questions too - suggesting it's a core issue.
Comment #12
rurri commentedI'm experiencing this issue as well and am using Short Answer Questions.
Comment #13
Anonymous (not verified) commentedI have in the last 2 days updated from an early Quiz 2 through 3 and currently latest 4. Also updated core to latest. Logged out and as a visitor can see the questions, logged in as user 1 can see the questions.
Comment #14
regi.bradley commentedI'm experiencing the same issue on my Drupal 6.22 site after updating to Quiz 6.x-4.3. Is there a fix out there for this yet?
Comment #15
criznach commentedsubscribing
Comment #16
matdab commentedsubscribing
Comment #17
PhillyDave commentedSame here using 6.X-4.3
Comment #18
falcon commentedThansk for reporting