Closed (fixed)
Project:
Mailchimp
Version:
7.x-2.3
Component:
Lists
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2011 at 21:27 UTC
Updated:
17 Jun 2013 at 04:10 UTC
Jump to comment: Most recent file
As stated in MCAPI:
array GROUPINGS Set Interest Groups by Grouping. Each element in this array should be an array containing the "groups" parameter which contains a comma delimited list of Interest Groups to add. Commas in Interest Group names should be escaped with a backslash. ie, "," => "\," and either an "id" or "name" parameter to specify the Grouping - get from listInterestGroupings()
This hasn't been done yet. If you use comma's in interest group names they will get split up. I included a patch that fixes this behaviour.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | mailchimp-escape-commas-user-insert-1365368-3-.patch | 718 bytes | jtolj |
| comma-escaping.patch | 1.29 KB | alexverb |
Comments
Comment #1
levelos commentedThanks, included in 7.x-2.4.
Comment #3
jtolj commentedThe above patch doesn't address the hook_user_insert() case, so commas in interest groups still aren't working from the user signup form. Patch is attached. Thanks!
Comment #4
gcbthanks jtolj. I fixed this by abstracting this function away rather than duplicating the calls in two places. Fixed in 2.x dev.