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().
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | decisions-cvs_tatien_92976.patch | 2.64 KB | tatien |
Comments
Comment #1
tatien commentedThis 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.
Comment #2
anarcat commentedGreat! Committed in #45966.
Comment #3
(not verified) commented