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

burningdog’s picture

Setting the "Quiz Results: Quiz State" filter to filter by "In progress" or "Not started" also only returns Quizzes in state "Finished."

burningdog’s picture

Title: "Quiz Results: Quiz State" filter in a quiz view works incorrectly » "Quiz Results: Quiz State" filter must be exposed to work correctly

Hold that thought: exposing the filter makes it work correctly. Weird?! Is that expected?

burningdog’s picture

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

falcon’s picture

Assigned: Unassigned » sdboyer
Status: Active » Needs work

I dare assign this to you sdboyer. I guess you'll reassign it if you don't have the time yourself.

falcon’s picture

Version: 6.x-4.0-alpha2 » 6.x-4.x-dev
sdboyer’s picture

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.

falcon’s picture

Nice!

falcon’s picture

Status: Needs work » Fixed

I think I just killed the booboo :)

Changes have been commited to 4.x-dev

falcon’s picture

Status: Fixed » Closed (fixed)