Skip to content

Commit 63fda1a

Browse files
authored
ENGCOM-5090: Fixed issue magento#22788 magento#22791
2 parents 02bca98 + 70fa33d commit 63fda1a

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Sales/view/frontend/templates/email/shipment

1 file changed

+3
-1
lines changed

app/code/Magento/Sales/view/frontend/templates/email/shipment/track.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
?>
1010
<?php $_shipment = $block->getShipment() ?>
1111
<?php $_order = $block->getOrder() ?>
12+
<?php if ($_shipment && $_order): ?>
1213
<?php $trackCollection = $_order->getTracksCollection($_shipment->getId()) ?>
13-
<?php if ($_shipment && $_order && $trackCollection): ?>
14+
<?php if ($trackCollection): ?>
1415
<br />
1516
<table class="shipment-track">
1617
<thead>
@@ -29,3 +30,4 @@
2930
</tbody>
3031
</table>
3132
<?php endif; ?>
33+
<?php endif; ?>

0 commit comments

Comments
 (0)