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]: Integrity constraint violation after updating to 5.2.9/fixing #3805 #3862

Open
gopeter opened this issue Jan 23, 2025 · 1 comment
Open

Comments

@gopeter
Copy link

gopeter commented Jan 23, 2025

What happened?

Description

I want to create a new product (under special circumstances which are described in "Steps to reproduce") but get a "Integrity constraint violation" error once I want to save it.

I did a lot of local debugging and this commit breaks our current shop: cdb0426

Steps to reproduce

  1. Create a multi-site (important!) shop
  2. Create a product where revisions are enabled (important!)
  3. Create a matrix field with a simple entry type
  4. Add this matrix field to the variant fields of this product and set propagation method to "save everywhere the owner is saved" (important!)

I was also able to reproduce it in the demo shop: https://living-eft-ae150c3.demo.craft.cloud/admin/commerce/products/bike/820960?site=default&draftId=83&fresh=1#tab04-variants (I've added a second test site and a test matrix field called "Settings")

Image

Craft CMS version

5.5.9

Craft Commerce version

>= 5.2.9

PHP version

No response

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