Active
Project:
OG Contact
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2011 at 15:15 UTC
Updated:
14 Oct 2011 at 15:19 UTC
Jump to comment: Most recent file
If the option to display group name is selected in the group options, the email that gets sent on submission of the group contact form should contain the group name at the beginiing of the subject. This fails to happen and I get an empty [] at the beginning.
i.e [] And then the subject...
instead of
[My Group] And then the subject...
og_contact_mail() assumes that group is an object when upon debug it appears to be an array. Changing the variables accordingly fixes the problem.
~Mark
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | alter_variables_to_array-1309948-1.patch | 1.6 KB | md2 |
Comments
Comment #1
md2 commentedPatch alters any instance of $group->object to $group['array'] within the og_contact_mail() function.
Seems to fix the issue for me.
~Mark