Skip to content

Commit

Permalink
MAGETWO-86881: Misleading feedback when sending tracking information …
Browse files Browse the repository at this point in the history
…email #1245
  • Loading branch information
ishakhsuvarov authored Jan 22, 2018
2 parents f00217a + a5907e5 commit 0b81a63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public function execute()
$this->_objectManager->create(\Magento\Shipping\Model\ShipmentNotifier::class)
->notify($shipment);
$shipment->save();
$this->messageManager->addSuccess(__('You sent the shipment.'));
$this->messageManager->addSuccess(
__('An email confirming the order is underway has been sent to the customer.')
);
}
} catch (\Magento\Framework\Exception\LocalizedException $e) {
$this->messageManager->addError($e->getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function testEmail()
->will($this->returnValue(true));
$this->messageManager->expects($this->once())
->method('addSuccess')
->with('You sent the shipment.');
->with('An email confirming the order is underway has been sent to the customer.');
$path = '*/*/view';
$arguments = ['shipment_id' => $shipmentId];
$this->prepareRedirect($path, $arguments, 0);
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Shipping/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Shipments,Shipments
"Cannot add tracking number.","Cannot add tracking number."
"You created the shipping label.","You created the shipping label."
"An error occurred while creating shipping label.","An error occurred while creating shipping label."
"You sent the shipment.","You sent the shipment."
"An email confirming the order is underway has been sent to the customer.","An email confirming the order is underway has been sent to the customer."
"Cannot send shipment information.","Cannot send shipment information."
"There are no shipping labels related to selected orders.","There are no shipping labels related to selected orders."
"New Shipment","New Shipment"
Expand Down

0 comments on commit 0b81a63

Please sign in to comment.