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.
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.
Comment | File | Size | Author |
---|---|---|---|
og_uid_global_install.patch | 1.22 KB | joshk | |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedcommitted 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.
Comment #2
(not verified) CreditAttribution: commented