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

joinUrlRewrite. Join on non-existing column #106

Closed
wants to merge 1 commit into from
Closed

joinUrlRewrite. Join on non-existing column #106

wants to merge 1 commit into from

Conversation

categoryshell
Copy link

joinUrlRewrite() tried to join on a non-existing column in core_url_rewrite.
Before the fix, this join was done with the product entity_id, on the entity_id column of core_url_rewrite.
This column does not exists in core_url_rewrite.
I've changed to query to join on product_id in core_url_rewrite.

It also used a conditional statement where type = 2. But column type does not exist in core_url_rewrite. I've removed this conditional statement.

Before fix, Magento would throw an exception. After fix, it joins the correct columns

joinUrlRewrite() tried to join on a non-existing column in `core_url_rewrite`.
Before the fix, this join was done with the product entity_id, on the entity_id column of core_url_rewrite.
This column does not exists in core_url_rewrite.
I've changed to query to join on product_id in core_url_rewrite.

It also used a conditional statement where type = 2. But column `type` does not exist in core_url_rewrite. I've removed this conditional statement.

Before fix, Magento would throw an exception. After fix, it joins the correct columns
@magento-team
Copy link
Contributor

Thank you very much for your post.
Function was fixed. It will be included to some release.

magento-team pushed a commit that referenced this pull request Feb 27, 2015
[Ogre] Sprint 23 Contribution
okorshenko pushed a commit that referenced this pull request Nov 5, 2015
[Mustangs] Milestone 11 Sprint 5 Changes
okorshenko pushed a commit that referenced this pull request Jun 16, 2016
magento-engcom-team pushed a commit that referenced this pull request Sep 14, 2018
MAGETWO-91760: Custom address attributes displays with wrong value on…
krnshah added a commit to krnshah/magento2 that referenced this pull request Mar 26, 2019
magento-engcom-team added a commit that referenced this pull request Apr 11, 2019
…ault-#106 #21932

 - Merge Pull Request #21932 from krnshah/magento2:Admin-Order-Create-Set-Save-address-checkbox-true-as-default-#106
 - Merged commits:
   1. 67fc1a0
   2. ef181ca
magento-engcom-team added a commit that referenced this pull request Apr 11, 2019
Accepted Public Pull Requests:
 - #22135: Fix broken link in README.md (by @samuel27m)
 - #21932: Admin-Order-Create-Set-Save-address-checkbox-true-as-default-#106 (by @krnshah)
 - #22002: Removed unwanted interface implementation (by @vishal-7037)
 - #21540: Move Magento\Framework\HTTP\ClientInterface preference to app/etc/di.xml (by @kassner)
 - #21083: Turn on edit mode for product repository when adding children (by @pedrosousa13)


Fixed GitHub Issues:
 - #22001: Magento backend dashboard: Most viewed products tabs gives 404 error in console. (reported by @vishal-7037) has been fixed in #22002 by @vishal-7037 in 2.3-develop branch
   Related commits:
     1. 9e6f56b
     2. 8a98f20

 - #20366: The parent product doesn't have configurable product options. (reported by @usamahabib786) has been fixed in #21083 by @pedrosousa13 in 2.3-develop branch
   Related commits:
     1. b3b6c90
     2. a7f03dd
     3. ac98b1f
     4. c78535d
amol2jcommerce pushed a commit to amol2jcommerce/magento2 that referenced this pull request Apr 12, 2019
amol2jcommerce pushed a commit to amol2jcommerce/magento2 that referenced this pull request Apr 12, 2019
niravkrish pushed a commit to niravkrish/magento2 that referenced this pull request Apr 15, 2019
niravkrish pushed a commit to niravkrish/magento2 that referenced this pull request Apr 15, 2019
magento-engcom-team pushed a commit to okorshenko/magento2 that referenced this pull request May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants