product_version_id
is not nullable in the OrderLineItem
definition, but is null
after deleting a product
#3594
Labels
PHP Version
8.1
Shopware Version
6.5.1.1
Expected behaviour
The
ProductVersionId
of anOrderLineItem
should be nullable, so when editing anOrderLineItem
of a deleted product, the order can be saved.Actual behaviour
When deleting a Product, both
product_id
andproduct_version_id
are set tonull
.But the
ReferenceVersionField
field of theProductDefinition
in theOrderLineItemDefinition
its flagged as required.The
OrderLineItemEntity::getProductVersionId
also states is always returns astring
. But when a product is deleted it returnsnull
;When editing a
OrderLineItem
of a deleted product, it also gives an error:How to reproduce
The
product_version_id
column in the DB for te createdOrderLineItem
is nownull
.The text was updated successfully, but these errors were encountered: