Some module "manually" send OrderHistory()->changeIdOrderState().
This is the case for IPN URL called when a payment system confirm/cancel/... a payment.
The point for the payment modules is to update the order using newer information.
But initFromContext always call SalesforceSQL::save which trigger an INSERT using an (already existing) id (PRIMARY KEY).
I don't know what the best fix is.
Some module "manually" send
OrderHistory()->changeIdOrderState().This is the case for IPN URL called when a payment system confirm/cancel/... a payment.
The point for the payment modules is to update the order using newer information.
But
initFromContextalways callSalesforceSQL::savewhich trigger an INSERT using an (already existing) id (PRIMARY KEY).I don't know what the best fix is.