File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
app/code/Magento/Newsletter/Model Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -428,13 +428,7 @@ public function subscribe($email)
428
428
|| $ this ->getStatus () == self ::STATUS_NOT_ACTIVE
429
429
) {
430
430
if ($ isConfirmNeed === true ) {
431
- // if user subscribes own login email - confirmation is not needed
432
- $ isOwnSubscribes = $ isSubscribeOwnEmail ;
433
- if ($ isOwnSubscribes == true ) {
434
- $ this ->setStatus (self ::STATUS_SUBSCRIBED );
435
- } else {
436
- $ this ->setStatus (self ::STATUS_NOT_ACTIVE );
437
- }
431
+ $ this ->setStatus (self ::STATUS_NOT_ACTIVE );
438
432
} else {
439
433
$ this ->setStatus (self ::STATUS_SUBSCRIBED );
440
434
}
@@ -460,9 +454,7 @@ public function subscribe($email)
460
454
try {
461
455
/* Save model before sending out email */
462
456
$ this ->save ();
463
- if ($ isConfirmNeed === true
464
- && $ isOwnSubscribes === false
465
- ) {
457
+ if ($ isConfirmNeed === true ) {
466
458
$ this ->sendConfirmationRequestEmail ();
467
459
} else {
468
460
$ this ->sendConfirmationSuccessEmail ();
You can’t perform that action at this time.
0 commit comments