I'm running Advanced Poll 6.x-1.x-dev with Voting API 6.x-2.0-rc2.
Using a binary poll, with two default choices, the following pattern happens reliably:
From the "latest poll" block - click "Other", write in a vote. Submit. Vote is recorded properly. (screenshot 51)
Click "Cancel Your Vote"
This cancels your vote and takes you to the poll node page.
From here, or if you return to the "latest poll" block, if you submit another write-in vote, it counts double, and the math is off as well (200%!) . (screenshots 52 & 53)
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | advpoll-double-count-writein-fix2.patch | 8.81 KB | elstudio |
| #6 | advpoll-double-count-writein-fix2.patch | 8.81 KB | elstudio |
| #5 | advpoll-double-count-writein-fix.patch | 1.73 KB | elstudio |
| screenshot.53.jpg | 23.78 KB | srjosh | |
| screenshot.52.jpg | 27.06 KB | srjosh |
Comments
Comment #1
ChrisKennedy commentedHmm, is that on the most recent -dev tar.gz file?
Comment #2
srjoshAdvanced Poll 6.x-1.x-dev (2009-Apr-11)
Comment #3
asak commentedSame here...
Advanced Poll 6.x-1.x-dev
// $Id: advpoll.module,v 1.21.2.88.2.23 2009/05/30 17:16:40 heyrocker Exp $
Votng API 6.x-2.3
// $Id: votingapi.module,v 1.46.2.24 2009/07/08 16:09:45 eaton Exp $
Comment #4
julesjs commentedSame here...was anyone able to solve this issue?
advpoll-6.x-1.x-dev
// $Id: advpoll.module,v 1.21.2.88.2.23 2009/05/30 17:16:40 heyrocker Exp $
votingapi-6.x-2.3
// $Id: votingapi.module,v 1.46.2.24 2009/07/08 16:09:45 eaton Exp $
Comment #5
elstudio commentedFor me, write-in votes were being double counted, whether or not they were canceled first.
I've attached a patch that I believe fixes both issues.
Please test, and let me know if it works for you.
Comment #6
elstudio commentedLet's try this again. Fixing the double-counting of write-ins required a few more changes.
* I limited _advpoll_writeins_voting_form_submit() to only retrieving the proper tag/cid for a write in. Votes are created back in the appropriate calling function.
Works well for binary polls. Please test for ranking polls.
Comment #7
elstudio commentedWell that last patch wasn't sufficient. This one works.
* I've limited _advpoll_writeins_voting_form_submit() to creating the proper tag/cid for write-ins -- not creating a vote for them. That fixes the double creation of writing votes.
Works well for binary votes.
Please test for ranked votes.
Comment #8
gobinathmD6 is EOL hence this issue won't be fixed (or) attended. So closing it.