The current code in og_user prevents user id 1 (the root user) from ever getting their settings stored in og_uid_global. Because og.module is not on when they register, no entry is INSERTED (done when the register op fires) and since there is no entry the UPDATE query on the update op has no effect.

Basically the solution here is to take the populating code from update_13 in the .install file and have it fire on installation too. Patch included.

CommentFileSizeAuthor
og_uid_global_install.patch1.22 KBjoshk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Fixed

committed with changes. i moved this to hook_enable and to an update function. that way, we assure that everyone always gets this value set. this allowed me to slightly simplify the og_mail() query.

Anonymous’s picture

Status: Fixed » Closed (fixed)