Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion app/code/core/Mage/Newsletter/Model/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,13 @@ public function subscribe($email)

$this->setSubscriberEmail($email);
} elseif ($this->getStatus() == self::STATUS_SUBSCRIBED) {
Mage::throwException(Mage::helper('newsletter')->__('This email address is already registered.'));
// Allow resubscription if user is subscribing their own email
if (!$isSubscribeOwnEmail) {
Mage::throwException(Mage::helper('newsletter')->__('This email address is already registered.'));
}
// User is resubscribing their own email that's already subscribed
// Return early to avoid unnecessary save() and duplicate confirmation emails
return $this->getStatus();
}

if ($isSubscribeOwnEmail) {
Expand Down
Loading