diff --git a/vendor/magento/module-sales/Model/AdminOrder/Create.php b/vendor/magento/module-sales/Model/AdminOrder/Create.php old mode 100644 new mode 100755 index c43d5c384c5..5d8ac807231 --- a/vendor/magento/module-sales/Model/AdminOrder/Create.php +++ b/vendor/magento/module-sales/Model/AdminOrder/Create.php @@ -1175,6 +1175,7 @@ class Create extends \Magento\Framework\DataObject implements \Magento\Checkout\ * @throws \Magento\Framework\Exception\LocalizedException * * @deprecated 101.0.0 + * @see not in use anymore */ protected function _parseOptions(\Magento\Quote\Model\Quote\Item $item, $additionalOptions) { @@ -1245,6 +1246,7 @@ class Create extends \Magento\Framework\DataObject implements \Magento\Checkout\ * @return $this * * @deprecated 101.0.0 + * @see not in use anymore */ protected function _assignOptionsToItem(\Magento\Quote\Model\Quote\Item $item, $options) { @@ -2011,7 +2013,7 @@ class Create extends \Magento\Framework\DataObject implements \Magento\Checkout\ $this->orderManagement->cancel($oldOrder->getEntityId()); $order->save(); } - if ($this->getSendConfirmation()) { + if ($this->getSendConfirmation() && !$order->getEmailSent()) { $this->emailSender->send($order); }