If a poll is marked to open in the future, the advpoll_closed message will only show if 'show results' is set to 'never'.

In my use case, which I imagine is pretty common, I would like the poll to show the "This poll will open on [date]" before the poll opens, followed by results after the poll closes.

in advpoll_display_results, no distinction is made between a poll being not yet open and a poll being finished. A variable called $expired is set to true in either of these cases.

This should be separated into 2 variables so each state can be handled differently.

CommentFileSizeAuthor
#1 notyetopened-1895188-1.patch1.03 KBtripper54

Comments

tripper54’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

Patch attached.

  • tripper54 committed b529193 on 7.x-3.x
    Issue #1895188 by tripper54: Not yet open polls should not show results
    
tripper54’s picture

Issue summary: View changes
Status: Needs review » Fixed

committed!

Status: Fixed » Closed (fixed)

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