The following patch adds in a handler so that views can display the vote count on polls.

Comments

sirkitree’s picture

StatusFileSize
new3.19 KB

oops forgot the sort handler include. patch updated.

merlinofchaos’s picture

Status: Active » Postponed

One minor quibble, it places the .inc files in poll/* rather than modules/poll/* which is no big deal.

The big deal, though, is that it does a group by which can be a little bit dangerous and I'm currently avoiding until I have a real solution for how to handle group by with Views. It really changes the dynamic of how SQL is structured and makes it super easy to create lots of invalid queries with things that seem logical/legal.

dtarc’s picture

This seems to work with Views 2.2 but breaks with 2.3. I'm not sure if it's the API change in 2.3 or if 2.3 is doing a check on the group by and blocking it (since it can be a little bit dangerous).

dagmar’s picture

Version: 6.x-2.2 » 6.x-3.x-dev
Status: Postponed » Fixed

I think we can mark this as fixed since Group By was implemented in Views 3, isn't?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.