"Quiz Results: Quiz State" filter must be exposed to work correctly
| Project: | Quiz |
| Version: | 6.x-4.x-dev |
| Component: | Code - Views |
| Category: | bug report |
| Priority: | normal |
| Assigned: | sdboyer |
| Status: | needs work |
Jump to:
Summary: when adding a "Quiz Results: Quiz State" filter in a quiz view the returned results are incorrectly filtered to show only the quizzes in the "Finished" state.
To replicate: have some quizzes in various states (like In Progress and Finished) and create a new view (of type "Quiz"). Add some fields (like Quiz Node NID and Quiz State). Make the display style a table, and hit "Preview." You should see a list of quizzes - some of which are In Progress and some of which are Finished (question: should quizzes that are in the state "Not started" also show up here?).
Now add a "Quiz Results: Quiz State" filter and set the Quiz State filtering option to "All Results (Do not filter)".
Expected result: no change change in the listed quizzes.
Actual result: only the Quizzes which have the state "Finished" are listed - the quizzes with the state "In Progress" disappear from the view.
Due to this bug, it's impossible to view a list of quizzes which a particular user has not taken (is this possible?).

#1
Setting the "Quiz Results: Quiz State" filter to filter by "In progress" or "Not started" also only returns Quizzes in state "Finished."
#2
Hold that thought: exposing the filter makes it work correctly. Weird?! Is that expected?
#3
re: viewing a list of quizzes which a particular user has not taken should be handled by views, but currently isn't. This comment gives some sql which works: http://drupal.org/node/604106#comment-2154542
#4
I dare assign this to you sdboyer. I guess you'll reassign it if you don't have the time yourself.
#5
#6
Woah. Yeah if it only works correctly when the filter is exposed, then I DEFINITELY made a booboo somewhere. I'll fix this when I blitz Quiz issues.
#7
Nice!