Since the poll mode uses the right functions from votingapi to fetch the results (as opposed to ranking), the results are not displayed properly. In fact, votingapi returns no results even though the vote is cast in votingapi_vote. That is because the cache isn't updated when the vote is cast, even if it should.

Might be a votingapi bug. Doesn't manifest itself in ranking because that mode doesn't use votingapi_get_voting_results().

CommentFileSizeAuthor
#1 decisions-cvs_tatien_92976.patch2.64 KBtatien

Comments

tatien’s picture

Status: Active » Needs review
StatusFileSize
new2.64 KB

This patch fixes it by changing the (apparently obsolete) VOTINGAPI_VALUE_TYPE_KEY constant for 'option' and fixing other problems with $vote objects not being created.

anarcat’s picture

Assigned: Unassigned » anarcat
Status: Needs review » Fixed

Great! Committed in #45966.

Anonymous’s picture

Status: Fixed » Closed (fixed)