When using votingapi_set_votes, the update/inserted vote object need to be returned so that affected vote_ids are available to the calling module. This change is already in place in votingapi_add_votes(), it just needs to be replicated in the set votes function also.

This patch just make the $votes parameter passed by reference (like votingapi_add_votes).

CommentFileSizeAuthor
votingapi2_vote_id.patch718 bytesquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eaton’s picture

Status: Needs review » Fixed

Fixed in the latest betas. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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