File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Newsletter/Model Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ private function saveSubscriber(
200
200
&& (int )$ subscriber ->getCustomerId () === (int )$ customer ->getId ()
201
201
&& (int )$ subscriber ->getStoreId () === $ storeId
202
202
&& !$ emailChanged
203
+ && $ status !== Subscriber::STATUS_NOT_ACTIVE
203
204
) {
204
205
return false ;
205
206
}
@@ -220,10 +221,10 @@ private function saveSubscriber(
220
221
221
222
/**
222
223
* If the subscriber is waiting to confirm from the customer
223
- * and customer changed the email
224
+ * or customer changed the email
224
225
* than need to send confirmation letter to the new email
225
226
*/
226
- return $ status === Subscriber::STATUS_NOT_ACTIVE && $ emailChanged ;
227
+ return $ status === Subscriber::STATUS_NOT_ACTIVE || $ emailChanged ;
227
228
}
228
229
229
230
/**
You can’t perform that action at this time.
0 commit comments