Closed (fixed)
Project:
Organic Group Statistics
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 May 2011 at 18:18 UTC
Updated:
2 Jun 2011 at 19:01 UTC
When the module is installed, the statistics for all available groups aren't gathered and stored.
I believe that would cause some problems when you have functions that:
function og_statistics_add_user($gid) {
$stat = og_statistics_load($gid);
$stat['members_count']++;
return drupal_write_record('og_statistics', $stat, 'nid');
}
I would suggest to either rebuilt the stats on install or specify in the README that you must do this if you're adding to a site with OG already installed.
What do you think?
Comments
Comment #1
dawehnerThis is already part of the readme.
Comment #2
mstef commentedOh, I'm actually on rc5 so I guess that was added already. You can close this then. Thanks.
Comment #3
dawehnerGreat.