Needs review
Project:
Decisions
Version:
6.x-1.x-dev
Component:
Code - Base Decisions module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2010 at 20:16 UTC
Updated:
9 Jun 2012 at 05:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
soma115 commentedI think that "Cancel your vote" button will disappear (and user will be able to vote) if corresponding record in "cache_decisions" table will be deleted.
Which function deletes records from "cache_decisions" bounded to given node?
P.S.
If you ask me - this option shouldn't exist at all.
Comment #2
travisjbennett commentedI implemented this change on my site. Any idea when it might make a release? I think it is a handy admin feature, especially for testing, with these other issues to work out.
(Follow)
Comment #3
anarcat commentedYour patch would be welcome here.
(BTW, you do not need to comment issues to follow, just use the big green button on top. Thanks.)
Comment #4
jimethn commentedThanks all, the information here allowed me to fix my problem as well. In addition to soma115's suggestion, I also added the code
db_query("DELETE FROM {cache_decisions} WHERE cid like 'decisions-%d-%%'", $nid);so that resetting the votes allows users to vote again.
Comment #5
cafuego commentedPatch attached, please test :-)