-
Notifications
You must be signed in to change notification settings - Fork 9.4k
FIX: remove not used count() from templates #12901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same issue it there.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 :(
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!