In function _fivestar_cast_vote selects only vote_id when selecting old vote

This patch add value into select so modules depended on voting can count properly for example userpoints gained on voting can use hook_votingapi_update($vote, $new_value) to recalculate points depending on new value and removing old poins

Comments

andypost’s picture

Category: support » feature

Patch against CVS

andypost’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

Any progress?

ezra-g’s picture

Status: Needs review » Fixed

Thanks for this patch!

Looking at _fivestar_cast_vote(), these queries are no longer preset. Instead, Fivestar calls the votingapi, which does _votingapi_select(), which includes a select all, which seems like it addresses the original intention of this patch. For this reason, I'm marking this issue as fixed but please re-open if this doesn't address the same issue as your patch.

Status: Fixed » Closed (fixed)

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

andypost’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev
Assigned: Unassigned » andypost
Category: feature » bug
Priority: Normal » Critical
Status: Closed (fixed) » Needs review

@ezra-g Drupal 5 still buggy

andypost’s picture

StatusFileSize
new1.47 KB

Patch here

andypost’s picture

StatusFileSize
new1.47 KB

field name is value not vote

ericduran’s picture

Status: Needs review » Closed (won't fix)

I'm going to close this issue. This is an old issue and is not longer an issue in d6 and 7.

Thanks.