Download & Extend

Plus1 vote retrieval should be more explicit

Project:Plus 1
Version:6.x-2.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Plus1 votes are correctly cast as 'points', but when the values are retrieved for display, it pulls in all votes regardless of type. If fivestar or other voting modules are installed at the same time, it makes collisions easy to trigger. The attached patch specifies 'points' and specifies the results of the 'sum' function when retrieving the current score, to avoid any confusion.

Great module!

AttachmentSize
plus1.patch880 bytes

Comments

#1

Thanks Eaton!

#2

Status:needs review» fixed

Patch has been reviewed, tested and committed. The next version contains it. Thanks again.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.