Skip to content

Commit 68e077f

Browse files
author
Oleksii Korshenko
committed
MAGETWO-83428: Fix 'Undefined variable: responseAjax' notice when trying to save a shipment package #12091
- Merge Pull Request #12091 from lazyguru/magento2:fix-undefined-variable-responseAjax - Merged commits: 1. 48a0415
2 parents dbcc3c4 + 48a0415 commit 68e077f

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
@@ -109,6 +109,8 @@ public function execute()
109109

110110
$isNeedCreateLabel = isset($data['create_shipping_label']) && $data['create_shipping_label'];
111111

112+
$responseAjax = new \Magento\Framework\DataObject();
113+
112114
try {
113115
$this->shipmentLoader->setOrderId($this->getRequest()->getParam('order_id'));
114116
$this->shipmentLoader->setShipmentId($this->getRequest()->getParam('shipment_id'));
@@ -143,7 +145,6 @@ public function execute()
143145
$shipment->register();
144146

145147
$shipment->getOrder()->setCustomerNoteNotify(!empty($data['send_email']));
146-
$responseAjax = new \Magento\Framework\DataObject();
147148

148149
if ($isNeedCreateLabel) {
149150
$this->labelGenerator->create($shipment, $this->_request);

0 commit comments

Comments
 (0)