You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the Tier Price gets deleted after editing it. Creation and deletion of the Tier Price work fine. Changing 'Customer Role' along with 'Price' prevents the issue from time to time but not guaranteed.
What I found is that if we send the tierPrice entity to the context with a null CustomerRole [virtual] property, the context deletes the tierPrice instead of updating it, even though the CustomerRoleId property is set. I think this is a bug in the EFCore but my workaround works but ensuring we don't send a null CustomerRole back to the context.
nopCommerce version: 4.20
Source: https://www.nopcommerce.com/boards/topic/78132/nopcommerce-42-tier-price-gets-deletec-after-editing
The text was updated successfully, but these errors were encountered: