-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[BUGFIX] [issue-13720] Allow more then 2 products with the same posit… #15251
[BUGFIX] [issue-13720] Allow more then 2 products with the same posit… #15251
Conversation
…ion in the Admin for Related Products
a7ae89b
to
186b4a6
Compare
Hi @lewisvoncken, thank you for collaboration. I think to use Can you please cover your changes by tests? |
@VladimirZaets i agree the solutions isn't the best, but atleast it works now. |
@robbertstevens can you refactor this code uses recursive function instead of |
@VladimirZaets no i cant, and what do you mean you think this is not a better solution? Now it doesnt even work. With his solutions atleast the feature works. It's like going to the garage and you need some air in your tires, but the electric pump is broken so you need to do in manually, and you say well what ever, ill drive with empty tires |
@robbertstevens we try to not introduce new not reliable code. This code is not reliable, it can introduce infinite loop and other bugs. I provided information how to refactor this code and this fix should be covered by tests. Please reopen and update if you wish to continue. |
@lewisvoncken I don't think there is any use for recursion here and I don't think a loop is infinite sometimes, however, old implementation was |
How come this bug is closed? Issue still happens in 2.2.5! |
I've opened a new PR using a different way for fixing this, which will hopefully get accepted by the Magento devs: #17885 |
…ion in the Admin for Related Products
Description
Only 2 related products are showing in backend
Fixed Issues (if relevant)
Steps to reproduce
Expected result
Actual result
Apply changes
Now the expected result will be the outcome.
Contribution checklist