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).

votingapi2_vote_id.patch718 bytesquicksketch
Members fund testing for the Drupal project. Drupal Association Learn more


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.