Posted by soma115 on November 11, 2010 at 8:16pm
3 followers
Jump to:
| Project: | Decisions |
| Version: | 6.x-1.x-dev |
| Component: | Code - Base Decisions module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | soma115 |
| Status: | active |
Issue Summary
It doesn't because vote results are kept in two tables:
- votingapi_cache
- votingapi_vote
"decisions_reset_form_submit()" function deletes only from on table - votingapi_vote.
I propose to add this line:
db_query("DELETE FROM {votingapi_cache} WHERE content_id = %d", $nid);
-------------
Additionally - after "Reset votes" option is used - users still can see "Cancel your vote" button (instead of been able to vote again). This button is not functional.
Users can't vote.
Somebody please verify my findings and conclusion.
Comments
#1
I 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.
#2
I 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)
#3
Your patch would be welcome here.
(BTW, you do not need to comment issues to follow, just use the big green button on top. Thanks.)