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

[5.x]: Restoring a soft-deleted Product does not restore it's Variants #3815

Open
roberttolton opened this issue Dec 13, 2024 · 1 comment
Open

Comments

@roberttolton
Copy link

What happened?

Description

When you soft-delete a Product, it's Variants are also soft-deleted. However, when you restore the Product, it's Variants remain soft-deleted and the UI offers no option to restore these Variants, leaving them permanently soft-deleted.

Steps to reproduce

  1. Create a Product with a Variant
  2. Soft-delete the Product
  3. Restore the Product
  4. Try and restore the Product's Variant

Expected behavior

Variants should be automatically restored upon their owning Product being restored and/or the UI should allow for the separate restoration of desired/all Variants.

Actual behavior

Variants are left permanently soft-deleted and cannot be restored.

Screenshot:
Image

Craft CMS version

5.5.6.1

Craft Commerce version

5.2.9

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant