File tree 1 file changed +8
-5
lines changed
app/code/Magento/Shipping/view/adminhtml/templates/view
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 16
16
</tr>
17
17
</thead>
18
18
<?php $ _items = $ block ->getShipment ()->getAllItems () ?>
19
- <?php $ _i = 0 ; foreach ($ _items as $ _item ): if ($ _item ->getOrderItem ()->getParentItem ()): continue ; endif ; $ _i ++ ?>
20
- <tbody class="<?= /* @escapeNotVerified */ $ _i %2 ? 'odd ' : 'even ' ?> ">
21
- <?= $ block ->getItemHtml ($ _item ) ?>
22
- <?= $ block ->getItemExtraInfoHtml ($ _item ->getOrderItem ()) ?>
23
- </tbody>
19
+ <?php $ _i = 0 ; foreach ($ _items as $ _item ):
20
+ if (!empty ($ _item ->getOrderItem ())) :
21
+ if ($ _item ->getOrderItem ()->getParentItem ()): continue ; endif ; $ _i ++ ?>
22
+ <tbody class="<?= /* @escapeNotVerified */ $ _i %2 ? 'odd ' : 'even ' ?> ">
23
+ <?= $ block ->getItemHtml ($ _item ) ?>
24
+ <?= $ block ->getItemExtraInfoHtml ($ _item ->getOrderItem ()) ?>
25
+ </tbody>
26
+ <?php endif ; ?>
24
27
<?php endforeach ; ?>
25
28
</table>
26
29
</div>
You can’t perform that action at this time.
0 commit comments