I have both the voucher and organic groups regcode modules activated. Once I activate the voucher module, an exception is generated in the user registration process. The error occurs because voucher implements hook_user_presave. The result is that the code tries to assign the user to the organic group before the user account has been saved to the database.
Solution: implementing hook_user_update instead of hook_user_presave fixes the issue for me. I no longer receive an error, and the voucher code is used successfully on update. Patch is attached. Let me know if you have any questions. Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | regcode_voucher-1294090-1.patch | 925 bytes | juliakoelsch |
Comments
Comment #1
juliakoelsch commentedForgot to attach patch.
Comment #2
aidanlis commentedThanks, patch applied!