-
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
FIX: remove not used count() from templates #12901
Conversation
Hello @orlangur can you please review this PR when you will have a time? :) |
continue; | ||
} ?> | ||
<?php if ($_item->getOrderItem()->getParentItem()): ?> | ||
continue; |
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.
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!
continue; | ||
} ?> | ||
<?php if ($_item->getOrderItem()->getParentItem()): ?> | ||
continue; |
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.
The same issue it there.
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 Thank you so much for your review. Sorry, it was my fail :(
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.
@coderimus no problem. I just created new PR that fixing this issue
Dear Magento2,
The main goal of this PR is to remove not used
count($_items)
in templates. Please, check Description section for details.Thank you,
Alex
Description
Found that in some templates Magento2 counts items for table rendering and other stuff but files, add to this PR, do not use
$_count
variable and<?php $_count = count($_items) ?>
can be excluded from them.Fixed Issues (if relevant)
Not related issue found.
Manual testing scenarios
No need to be tested because just removing a not used variable from templates.
Contribution checklist