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

[Forwardport] Fix sitemap grid render incorrect base urls for multiple stores #18228

Merged
merged 1 commit into from
Oct 3, 2018
Merged

[Forwardport] Fix sitemap grid render incorrect base urls for multiple stores #18228

merged 1 commit into from
Oct 3, 2018

Conversation

nntoan
Copy link
Contributor

@nntoan nntoan commented Sep 25, 2018

Original Pull Request

#18000

Description

In Magento/Sitemap/Block/Adminhtml/Grid/Renderer/Link.php, we've created new instance for \Magento\Sitemap\Model\Sitemap. That lead to $sitemap->getStoreId() is NULL all the time, the sitemap.xml generated still using correct store id because of we load $sitemap instance from the collection which retrieve data directly from the database.

So to fix this issue, we should set the store id for the current sitemap object based on store id retrieved from the current row.

Fixed Issues (if relevant)

  1. Sitemap grid display incorrect base URL in the grid if using multiple stores #17999: Sitemap grid display incorrect base URL in the grid if using multiple stores

Manual testing scenarios

  1. Setup multiple store views with different base urls, (default config base url must be different with all other store view base url)
  2. Go to Marketing > SEO & Search > Site Map
  3. Check if Actual Result in Sitemap grid display incorrect base URL in the grid if using multiple stores #17999 does not happen. It suppose to display something like this:
    screenshot from 2018-09-10 17-04-44

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @nntoan. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me $VERSION instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@nntoan nntoan changed the title Fix sitemap grid render incorrect base urls for multiple stores [Forwardport] Fix sitemap grid render incorrect base urls for multiple stores Sep 25, 2018
@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-3040 has been created to process this Pull Request

@magento-engcom-team
Copy link
Contributor

Hi @nntoan. Thank you for your contribution.
We will aim to release these changes as part of 2.3.1.
Please check the release notes for final confirmation.

@nntoan nntoan deleted the 2.3-develop-PR-port-18000 branch October 6, 2018 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants