The following patch adds in a handler so that views can display the vote count on polls.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views.polls-vote-counter.patch | 3.19 KB | sirkitree |
| views.polls-vote-counter.patch | 2.59 KB | sirkitree |
The following patch adds in a handler so that views can display the vote count on polls.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views.polls-vote-counter.patch | 3.19 KB | sirkitree |
| views.polls-vote-counter.patch | 2.59 KB | sirkitree |
Comments
Comment #1
sirkitree commentedoops forgot the sort handler include. patch updated.
Comment #2
merlinofchaos commentedOne 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.
Comment #3
dtarc commentedThis 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).
Comment #4
dagmarI think we can mark this as fixed since Group By was implemented in Views 3, isn't?