Anonymous Window does not take Immediately into consideration
mcpuddin - November 3, 2009 - 01:09
| Project: | Voting API |
| Version: | 6.x-2.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I could not get the anonymous window to work properly with the Plus 1 module. Looking into the code a little deeper I noticed that the Plus1 Module calls "votingapi_select_votes" to determine if the current 'user' has casted any votes. In "votingapi_select_votes", the logic to incorporate votingapi_anonymous_window is:
if (!empty($criteria['vote_source']) && $anon_window > 0) {
However, $anon_window = 0 when it is set to "immediately". I propose this line of code be changed to:
if (!empty($criteria['vote_source']) && $anon_window >= 0) {
