File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ public function execute()
107
107
$ this ->_objectManager ->get (\Magento \Backend \Model \Session::class)->setCommentText ($ data ['comment_text ' ]);
108
108
}
109
109
110
+ $ isNeedCreateLabel = isset ($ data ['create_shipping_label ' ]) && $ data ['create_shipping_label ' ];
111
+
110
112
try {
111
113
$ this ->shipmentLoader ->setOrderId ($ this ->getRequest ()->getParam ('order_id ' ));
112
114
$ this ->shipmentLoader ->setShipmentId ($ this ->getRequest ()->getParam ('shipment_id ' ));
@@ -140,7 +142,6 @@ public function execute()
140
142
141
143
$ shipment ->getOrder ()->setCustomerNoteNotify (!empty ($ data ['send_email ' ]));
142
144
$ responseAjax = new \Magento \Framework \DataObject ();
143
- $ isNeedCreateLabel = isset ($ data ['create_shipping_label ' ]) && $ data ['create_shipping_label ' ];
144
145
145
146
if ($ isNeedCreateLabel ) {
146
147
$ this ->labelGenerator ->create ($ shipment , $ this ->_request );
You can’t perform that action at this time.
0 commit comments