Voting API allows other modules to replace default storage for raw vote data with their own, for performance or other considerations. Currently, this functionality isn't much used (see e.g. http://drupal.org/project/mongodb_votingapi), but there might be other modules out there that aren't published on d.o., and more might be developed in the future.

rate_results_page() does direct queries to votingapi_vote table; however, with storage other than default that table might be empty or even not exist.

There are two ways to deal with this:

  • either using API functions (which might result in somewhat increased resource consumption),
  • or removing non-essential stuff when storage other than default is used.

Patch coming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Drave Robber’s picture

Assigned: Drave Robber » Unassigned
Status: Active » Needs review
FileSize
2.34 KB

Attached patch employs both solutions - votingapi_select_votes() for the table and dropping the chart if another storage is used.