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?).
Comments
Comment #1
burningdog commentedSetting the "Quiz Results: Quiz State" filter to filter by "In progress" or "Not started" also only returns Quizzes in state "Finished."
Comment #2
burningdog commentedHold that thought: exposing the filter makes it work correctly. Weird?! Is that expected?
Comment #3
burningdog commentedre: 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
Comment #4
falcon commentedI dare assign this to you sdboyer. I guess you'll reassign it if you don't have the time yourself.
Comment #5
falcon commentedComment #6
sdboyer commentedWoah. 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.
Comment #7
falcon commentedNice!
Comment #8
falcon commentedI think I just killed the booboo :)
Changes have been commited to 4.x-dev
Comment #9
falcon commented