Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Prometheus6 commentedShould be vs. CVS instead of 4.5
Comment #2
Dries CreditAttribution: Dries commentedOther than that, this looks like a bug fix.
Comment #3
Prometheus6 CreditAttribution: 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 CreditAttribution: Dries commentedComment #5
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedpatch: **** malformed patch at line 12:
Comment #6
Prometheus6 CreditAttribution: Prometheus6 commentedComment #7
Steven CreditAttribution: 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) CreditAttribution: commented