Closed (fixed)
Project:
Drupal core
Component:
poll.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Dec 2004 at 11:40 UTC
Updated:
1 Apr 2005 at 09:15 UTC
Jump to comment: Most recent file
I use polls infrequently and want them on the sidebar when they are active. But I don't want an inactive poll displayed for weeks or months.
This patch changes the SQL that selects the latest poll to display. It simply adds the requirement that the poll be active.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | POLL_HEAD_PATCH.txt | 968 bytes | Prometheus6 |
| #3 | poll_0.patch | 1.19 KB | Prometheus6 |
| poll.patch | 1.14 KB | Prometheus6 |
Comments
Comment #1
Prometheus6 commentedShould be vs. CVS instead of 4.5
Comment #2
dries commentedOther than that, this looks like a bug fix.
Comment #3
Prometheus6 commentedBug fix, yes, but I figured if no one complained in so long it was intentional. Or maybe most people that use polls use them frequently.
Two corrections to formatting, and braces around the table name added.
Comment #4
dries commentedComment #5
killes@www.drop.org commentedpatch: **** malformed patch at line 12:
Comment #6
Prometheus6 commentedComment #7
Steven commentedYour last patch did not include the join. I committed a fixed one to HEAD. I also got rid of the
WHERE n.type = "poll"as it is already implicitly taken into account by doing an INNER JOIN on the poll table.Comment #8
(not verified) commented