-
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
Scope bug in Catalog URL resource (_getCategories) #38393
Comments
Hi @pmzandbergen. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hello @sidolov Thank you in advance. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @pmzandbergen, Thanks for the report and collaboration! We have verified the issue by looking into the codebase:
This statement does not make any sense if in any case, we need to use
Hence confirming the issue. Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-11011 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
Hello @engcom-Hotel I am not sure we need to change results of the SQL query by we-self without discussing with product's owners or platform's architects. Thank you in advance. cc @maghamed |
Hi @engcom-Hotel, My PR is using a different condition (
Please ensure the correct fix is used (see my PR @ #38394 ) |
Bug
The following condition is obviously invalid:
magento2/app/code/Magento/Catalog/Model/ResourceModel/Url.php
Line 415 in 03621bb
Explanation
The resulting query is:
Attribute
is_active\
is joined twice on both the store (c\
) and default scope (d\
). If there is no value available on the store scope (c.value\
) the default scope (d.value
) should be used instead.Solution
The condition from line 415:
Should be changed to:
Note: This bug might not be affecting any Magento code (depends if the
is_active
flag is actually being used somewhere).The text was updated successfully, but these errors were encountered: