Skip to content

Commit 294c5d7

Browse files
authored
Merge pull request #154 from markus-moser/mailchimp_handler
[Mailchimp Sync] fix subscribe with status method
2 parents 847900b + ea919cd commit 294c5d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Newsletter/ProviderHandler/Mailchimp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ public function subscribeCustomerWithStatus(NewsletterAwareCustomerInterface $cu
358358
/**
359359
* @var MailchimpAwareCustomerInterface $customer;
360360
*/
361-
if (!$newsletterStatus = $this->reverseMapNewsletterStatus(self::STATUS_SUBSCRIBED)) {
362-
$this->getLogger()->error(sprintf('subscribe failed: could not reverse map mailchimp status %s', self::STATUS_SUBSCRIBED));
361+
if (!$newsletterStatus = $this->reverseMapNewsletterStatus($status)) {
362+
$this->getLogger()->error(sprintf('subscribe failed: could not reverse map mailchimp status %s', $status));
363363

364364
return false;
365365
}

0 commit comments

Comments
 (0)