From a44cb0e9082c73a8512e9f42ab2ef124b1ceb03e Mon Sep 17 00:00:00 2001 From: Govind Sharma Date: Wed, 30 Jan 2019 10:21:21 +0530 Subject: [PATCH] Updated Save.php file --- .../Sales/Controller/Adminhtml/Order/Invoice/Save.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/code/Magento/Sales/Controller/Adminhtml/Order/Invoice/Save.php b/app/code/Magento/Sales/Controller/Adminhtml/Order/Invoice/Save.php index 932a688fba0fb..8e2f1e951606d 100644 --- a/app/code/Magento/Sales/Controller/Adminhtml/Order/Invoice/Save.php +++ b/app/code/Magento/Sales/Controller/Adminhtml/Order/Invoice/Save.php @@ -200,12 +200,7 @@ public function execute() $this->_objectManager->get(\Psr\Log\LoggerInterface::class)->critical($e); $this->messageManager->addError(__('We can\'t send the invoice email right now.')); } - if (!empty($data['do_shipment'])) { - $this->messageManager->addSuccess(__('You created the invoice and shipment.')); - } else { - $this->messageManager->addSuccess(__('The invoice has been created.')); - } - + if ($shipment) { try { if (!empty($data['send_email'])) {