Skip to content
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

Avoid filtering on product status if flat catalog is enabled #2659

Closed
wants to merge 3 commits into from
Closed

Avoid filtering on product status if flat catalog is enabled #2659

wants to merge 3 commits into from

Conversation

fballiano
Copy link
Contributor

Full explanation is here: #2658

The way it was coded was simply wrong, when forcing the setPart() the "type of where" gets lost and the system doesn't know if it is a AND or an OR.
This PR rewrites it and avoids the usage of "1=1" which wasn't the best anyway.

Fixed Issues (if relevant)

  1. Fixes Product flat tables broken, ref #2603 #2658

Manual testing scenarios (*)

Enable flat catalog, reindex, navigate to a category page, no error should be displayed.

@github-actions github-actions bot added the Component: Catalog Relates to Mage_Catalog label Oct 17, 2022
@fballiano fballiano changed the title Fixed WHERE management in Mage_Catalog_Model_Resource_Layer_Filter_Price Partial revert of #2603 Oct 17, 2022
@elidrissidev
Copy link
Member

The description and title are a bit misleading, as the change isn't a part of #2603.

@fballiano fballiano changed the title Partial revert of #2603 Avoid filtering on product status if flat catalog is enabled Oct 18, 2022
@fballiano
Copy link
Contributor Author

true, changed

@sreichel sreichel mentioned this pull request Oct 19, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Catalog Relates to Mage_Catalog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Product flat tables broken, ref #2603
2 participants