Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<?php $items = $block->getChildren($parentItem) ?>
<?php $_order = $block->getItem()->getOrderItem()->getOrder() ?>
<?php $_count = count($items) ?>
<?php $_index = 0 ?>

<?php $_prevOptionId = '' ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<?php $_order = $block->getItem()->getOrderItem()->getOrder() ?>

<?php $items = $block->getChildren($parentItem) ?>
<?php $_count = count($items) ?>
<?php $_index = 0 ?>

<?php $_prevOptionId = '' ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
?>
<?php $parentItem = $block->getItem() ?>
<?php $items = array_merge([$parentItem], $parentItem->getChildrenItems()); ?>
<?php $_count = count($items) ?>
<?php $_index = 0 ?>

<?php $_prevOptionId = '' ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<?php $parentItem = $block->getItem() ?>
<?php $items = array_merge([$parentItem->getOrderItem()], $parentItem->getOrderItem()->getChildrenItems()) ?>
<?php $shipItems = $block->getChildren($parentItem) ?>
<?php $_count = count($items) ?>
<?php $_index = 0 ?>

<?php $_prevOptionId = '' ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
</tr>
</thead>
<?php $_items = $_creditmemo->getAllItems(); ?>
<?php $_count = count($_items) ?>
<?php foreach ($_items as $_item): ?>
<?php if ($_item->getOrderItem()->getParentItem()) {
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
</tr>
</thead>
<?php $_items = $_invoice->getAllItems(); ?>
<?php $_count = count($_items) ?>
<?php foreach ($_items as $_item): ?>
<?php if ($_item->getOrderItem()->getParentItem()) {
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@
</tr>
</thead>
<?php $_items = $_creditmemo->getAllItems(); ?>
<?php $_count = count($_items); ?>
<?php foreach ($_items as $_item): ?>
<?php if ($_item->getOrderItem()->getParentItem()) {
continue;
} ?>
<?php if ($_item->getOrderItem()->getParentItem()): ?>
continue;
Copy link
Contributor

@ihor-sviziev ihor-sviziev Jan 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continue; will be shown. It is regression. Am I wrong?
@orlangur could you check it?

It was merged "as is" in 0d04ec6

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ihor-sviziev @orlangur thank you for your review. Yep, it was an error. Thanks once more for your help!

<?php endif; ?>
<tbody>
<?= $block->getItemHtml($_item) ?>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@
</tr>
</thead>
<?php $_items = $_invoice->getItemsCollection(); ?>
<?php $_count = $_items->count(); ?>
<?php foreach ($_items as $_item): ?>
<?php if ($_item->getOrderItem()->getParentItem()) {
continue;
} ?>
<?php if ($_item->getOrderItem()->getParentItem()): ?>
continue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same issue it there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ihor-sviziev Thank you so much for your review. Sorry, it was my fail :(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coderimus no problem. I just created new PR that fixing this issue

<?php endif; ?>
<tbody>
<?= $block->getItemHtml($_item) ?>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
</tr>
</thead>
<?php $_items = $_shipment->getAllItems(); ?>
<?php $_count = count($_items) ?>
<?php foreach ($_items as $_item): ?>
<?php if ($_item->getOrderItem()->getParentItem()) {
continue;
Expand Down