Right after submitting a vote, results are always displayed, even if advpoll_results is set to other than aftervote (actually I tested it with afterclose). After reloading the page it behaves normally, though.

Possible solution: if I refresh poll data before calling advpoll_display_results() in advpoll_form_submit() then it shows the expected behavior (see the attached patch).

CommentFileSizeAuthor
fix-results-are-always-visible.patch440 bytesecsedi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ecsedi created an issue.