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

Fix for url_rewrite on page delete via api #10569

Conversation

avdb
Copy link

@avdb avdb commented Aug 17, 2017

For develop see PR #10568

Problem: when deleting a cms page via api the url_rewrites aren't deleted

Steps to reproduce:

  • add cms page via api
  • delete cms page via api
  • add new cms page with same identifier via api
  • ERROR: Could not save the page, URL key already exists

Solution: moved di.xml from etc/adminhtml to etc/ folder in CmsUrlRewrite module
Event trigger to delete url rewrites is located in di.xml

Description

Fixed Issues (if relevant)

  1. magento/magento2#<issue_number>: Issue title
  2. ...

Manual testing scenarios

  1. ...
  2. ...

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)

For develop see PR magento#10568

Problem: when deleting a cms page via api the url_rewrites aren't deleted

Steps to reproduce:
- add cms page via api
- delete cms page via api
- add new cms page with same identifier via api
- ERROR: Could not save the page, URL key already exists

Solution: moved di.xml from etc/adminhtml to etc/ folder in CmsUrlRewrite module
Event trigger to delete url rewrites is located in di.xml
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Aug 17, 2017

CLA assistant check
All committers have signed the CLA.

@magento-team magento-team merged commit f26b05d into magento:2.1-develop Aug 17, 2017
magento-team pushed a commit that referenced this pull request Aug 17, 2017
[EngCom] Public Pull Requests - 2.1
 - MAGETWO-71658: Fix for url_rewrite on page delete via api #10569
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.

None yet

5 participants