Skip to content

Delete Attribute Set is not Deleting product url key in url rewrite #10764

@pradeeprcs

Description

@pradeeprcs

Preconditions

  1. Magento 2.1.7
  2. With needed prerequisites.

Steps to reproduce

  1. Create a new attribute set ex: testattset
  2. Create a product for the newly created attribute set (test as product so URL key also become test)
  3. Delete the newly created attribute set, in M2 soon after attribute set is deleted all related product of that attribute set also deleted that is test product also deleted
  4. But when you try to create a product with the same name it will throw error "URL key for specified store already exists." because URL key of that product is not deleted

Expected result

  1. when attribute set is deleted all the product of that attribute set and related URL key from URL rewrite should also be deleted and allow to create same product the second time also

Actual result

  1. its throw error "URL key for specified store already exists."

Metadata

Metadata

Labels

Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions