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

Taxoman’s picture

Subscribing

torotil’s picture

Status: Active » Closed (duplicate)

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