Closed (fixed)
Project:
Voting API
Version:
7.x-2.4-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2011 at 21:14 UTC
Updated:
8 Jul 2011 at 16:41 UTC
The users old votes are not deleted when not explicitly setting $criteria (2nd argument) for votingapi_set_votes(). The docblock says: "If no value is specified, all votes for the current content by the current user will be reset."
Problem is that the value for the vote is added to the criteria. So only votes with the same user, same node and same value are deleted. Patch attached fixed this problem.
| Comment | File | Size | Author |
|---|---|---|---|
| votingapi_delete_votes.patch | 434 bytes | mauritsl |
Comments
Comment #1
eaton commentedCommitted to dev, it will be part of the 7.x-2.4 release. Thanks!
Comment #3
robin van emden commentedIt seems the same problem can be found in 6.x-2.x-dev?