Skip to content

Commit ee85347

Browse files
committed
MC-19140: [DHL] You are still on New Shipment page after creating the shipment
1 parent 3e37588 commit ee85347

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Shipping/view/adminhtml/templates/order/packaging/popup.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $girthEnabled = $block->isDisplayGirthValue() && $block->isGirthAllowed() ? 1 :
3131
packaging.sendCreateLabelRequest();
3232
});
3333
packaging.setLabelCreatedCallback(function(response){
34-
setLocation("<?php $block->escapeJs($block->escapeUrl($block->getUrl(
34+
setLocation("<?= $block->escapeJs($block->escapeUrl($block->getUrl(
3535
'sales/order/view',
3636
['order_id' => $block->getShipment()->getOrderId()]
3737
))); ?>");

app/code/Magento/Shipping/view/adminhtml/templates/view/form.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $order = $block->getShipment()->getOrder();
8585
window.packaging.sendCreateLabelRequest();
8686
});
8787
window.packaging.setLabelCreatedCallback(function () {
88-
setLocation("<?php $block->escapeUrl($block->getUrl('adminhtml/order_shipment/view', ['shipment_id' => $block->getShipment()->getId()])); ?>");
88+
setLocation("<?= $block->escapeUrl($block->getUrl('adminhtml/order_shipment/view', ['shipment_id' => $block->getShipment()->getId()])); ?>");
8989
});
9090
};
9191

0 commit comments

Comments
 (0)