We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 847900b + ea919cd commit 294c5d7Copy full SHA for 294c5d7
src/Newsletter/ProviderHandler/Mailchimp.php
@@ -358,8 +358,8 @@ public function subscribeCustomerWithStatus(NewsletterAwareCustomerInterface $cu
358
/**
359
* @var MailchimpAwareCustomerInterface $customer;
360
*/
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));
+ if (!$newsletterStatus = $this->reverseMapNewsletterStatus($status)) {
+ $this->getLogger()->error(sprintf('subscribe failed: could not reverse map mailchimp status %s', $status));
363
364
return false;
365
}
0 commit comments