Skip to content

Commit ad6b9ab

Browse files
ENGCOM-5127: [Backport] Fixed issue #22788 #22906
2 parents 7456924 + 6a62e0a commit ad6b9ab

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)