Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix discarded duplicated products bug
When a product is cloned and then discarded without changing the cloned variants SKU, if the product is ever cloned again then the cloning process will fail with a variant and master variant SKU validation error. This issue occurs because products and their variants are soft deleted and therefore the copied SKU will not be unique during the second cloning. This commit also includes a spec to catch this error in the future.
- Loading branch information
Showing
3 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters