Closed (duplicate)
Project:
Voting API
Version:
7.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2011 at 10:57 UTC
Updated:
22 Sep 2012 at 10:56 UTC
The foreach at the end of drush_votingapi_recalculate() is not using the correct keys, hence results are not rebuilt.
Index: sites/all/modules/votingapi/votingapi.drush.inc
===================================================================
--- sites/all/modules/votingapi/votingapi.drush.inc (revisione 77)
+++ sites/all/modules/votingapi/votingapi.drush.inc (copia locale)
@@ -165,7 +165,7 @@ function drush_votingapi_recalculate($entity_type
}
foreach ($votes as $vote) {
- votingapi_recalculate_results($entity_type, $entity_id, TRUE);
+ votingapi_recalculate_results($vote['entity_type'], $vote['entity_id'], TRUE);
}
drush_log($message, 'success');
Comments
Comment #1
Taxoman commentedSubscribing
Comment #2
torotil commentedThanks for your report. This is a duplicate of report #1399800: Need to Import 9k Votes - Votingapi_cache not being rebuilt. I've already committed the fix for it.