Skip to content

Commit e8a4ae4

Browse files
#39861: Shipment email not sent when submitted from Admin Order view despite being enabled in store configuration
- adding storeId to canSendNewShipmentEmail method
1 parent c8ba4ab commit e8a4ae4

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment

1 file changed

+2
-1
lines changed

app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ public function execute()
167167

168168
$this->_saveShipment($shipment);
169169

170-
if (!empty($data['send_email']) && $this->salesData->canSendNewShipmentEmail()) {
170+
if (!empty($data['send_email'])
171+
&& $this->salesData->canSendNewShipmentEmail($shipment->getOrder()->getStoreId())) {
171172
$this->shipmentSender->send($shipment);
172173
}
173174

0 commit comments

Comments
 (0)