Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | rate-Make_rate_results_page_work_with_non_default_vote_storage-1870026-1.patch | 2.34 KB | Drave Robber |
Comments
Comment #1
Drave Robber CreditAttribution: Drave Robber commentedAttached patch employs both solutions -
votingapi_select_votes()
for the table and dropping the chart if another storage is used.