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

Update ProductHelper.php to prevent false in facets #1537

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matthewbond
Copy link

@matthewbond matthewbond commented Jun 15, 2024

We had a report from a customer that their facets show false as a value because there is no check if the product attribute value is false before passing it on to be potentially added to the attributes of a product. Adding their suggestion which should resolve the issue.

Summary

This change modifies the check to make sure that the attribute value is not false before passing it to the $customerData object

Result

We had a report from a customer that their facets show false as a value because there is no check if the value is false before passing it on to be potentially added to the facet. Adding their suggestion which should resolve the issue.
@matthewbond
Copy link
Author

Thanks to https://github.com/markfischmann for suggesting this change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants