"Quiz Results: Quiz State" filter must be exposed to work correctly

Roger Saner - October 13, 2009 - 14:01
Project:Quiz
Version:6.x-4.x-dev
Component:Code - Views
Category:bug report
Priority:normal
Assigned:sdboyer
Status:needs work
Description

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

Roger Saner - October 13, 2009 - 14:04

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

#2

Roger Saner - October 13, 2009 - 14:50
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?

#3

Roger Saner - October 15, 2009 - 14:30

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

falcon - November 10, 2009 - 09:12
Assigned to:Anonymous» 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.

#5

falcon - November 10, 2009 - 09:18
Version:6.x-4.0-alpha2» 6.x-4.x-dev

#6

sdboyer - November 10, 2009 - 16:58

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

falcon - November 11, 2009 - 07:07

Nice!

 
 

Drupal is a registered trademark of Dries Buytaert.