Skip to content

Commit 38d3756

Browse files
committed
MC-33893: 2.3.4 Invoice always sent (if exist) when order placed.
1 parent 5be8f4e commit 38d3756

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Quote/Observer/SendInvoiceEmailObserver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Quote\Observer;
79

810
use Magento\Framework\Event\Observer;
@@ -76,7 +78,7 @@ public function execute(Observer $observer)
7678
if ($invoice) {
7779
$this->invoiceSender->send($invoice);
7880
}
79-
} catch (\Exception $e) {
81+
} catch (\Throwable $e) {
8082
$this->logger->critical($e);
8183
}
8284
}

app/code/Magento/Quote/Observer/SubmitObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function execute(Observer $observer)
6060
if (!$redirectUrl && $order->getCanSendNewEmailFlag()) {
6161
try {
6262
$this->orderSender->send($order);
63-
} catch (\Exception $e) {
63+
} catch (\Throwable $e) {
6464
$this->logger->critical($e);
6565
}
6666
}

0 commit comments

Comments
 (0)