Skip to content

Commit

Permalink
MAGETWO-83428: Fix "Undefined variable: responseAjax" notice when try…
Browse files Browse the repository at this point in the history
…ing to save a shipment package #12091
  • Loading branch information
Oleksii Korshenko authored Nov 8, 2017
2 parents 45087b4 + 68e077f commit b1e5801
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public function execute()

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

$responseAjax = new \Magento\Framework\DataObject();

try {
$this->shipmentLoader->setOrderId($this->getRequest()->getParam('order_id'));
$this->shipmentLoader->setShipmentId($this->getRequest()->getParam('shipment_id'));
Expand Down Expand Up @@ -143,7 +145,6 @@ public function execute()
$shipment->register();

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

if ($isNeedCreateLabel) {
$this->labelGenerator->create($shipment, $this->_request);
Expand Down

0 comments on commit b1e5801

Please sign in to comment.