Hi, thanks for a greate module. Simple and elegant!

I have a problem however, not sure if it is related to this module or VotingAPI in general. When I'm using Views to output the total number of votes on a node I always get 0 as a result. I think it has to do with the votingapi_cache table not beeing populated.

Do you have any clue on how to fix this?

Comments

peter törnstrand’s picture

Found the answer to my own question.

Modules that use votingapi_add_vote() are implicitly taking on the responsibility of calling votingapi_recalculate_results() when they're done. If they use votingapi_set_votes() instead, it will be handled automatically. I reiterate: this is by design, and the problem is that a module is adding votes one-by-one but never calling votingapi_recalculate_results().

http://drupal.org/node/234545#comment-875544

jmiccolis’s picture

Status: Active » Fixed

Setting to fixed.

Status: Fixed » Closed (fixed)

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