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

stovak created an issue. See original summary.

stovak’s picture

Issue summary: View changes
stovak’s picture

stovak’s picture

Issue summary: View changes
stovak’s picture

Issue summary: View changes
steve.colson’s picture

Status: Active » Closed (fixed)

Thanks, committed