Skip to content

Commit b1e5801

Browse files
author
Oleksii Korshenko
authored
MAGETWO-83428: Fix "Undefined variable: responseAjax" notice when trying to save a shipment package #12091
2 parents 45087b4 + 68e077f commit b1e5801

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)