brontoapi.module line 147:
$res = brontoapi_exec_all('readContacts', array(
'filter' => array(
'email' => array(
array(
'value' => $email,
'operator' => 'EqualTo',
),
),
),
'include_lists' => $include_lists,
));
include_lists should be includeLists. Otherwise the contact comes back without the list information and the contact is UNSUBSCRIBED from all lists when added to a previously unsubscribed list.
Correct code is:
$res = brontoapi_exec_all('readContacts', array(
'filter' => array(
'email' => array(
array(
'value' => $email,
'operator' => 'EqualTo',
),
),
),
'includeLists' => $include_lists,
));
And bronto owes me 2 hours of my life back as well as the massage they made me miss when the API went down unexpectedly. ;-)
Comments
Comment #2
stovak commentedComment #3
stovak commentedComment #4
stovak commentedComment #5
stovak commentedComment #6
steve.colson commentedThanks, committed