Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For some reason when creating campaigns using mailchimp_campaign_send_campaign() the call to getCampaign() reported the status as MAILCHIMP_STATUS_SENDING rather than MAILCHIMP_STATUS_SENT, and this caused the function to report the send had failed failed when in fact it hadn't.
I changed
if ($campaign->status == MAILCHIMP_STATUS_SENT) {
to
if ($campaign->status == MAILCHIMP_STATUS_SENT || $campaign->status == MAILCHIMP_STATUS_SENDING) {
to work around this.
Does it make sense, and is MAILCHIMP_STATUS_SENDING an OK status at that point?
Comment | File | Size | Author |
---|---|---|---|
#2 | 2871536-2.patch | 766 bytes | samuel.mortenson |
|
Comments
Comment #2
samuel.mortensonThat does make sense, could you test that this patch works for you?