From 77d6a5ff910fc112c69cf37bf92b32ad26e8b17d Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Fri, 7 Feb 2020 13:48:03 +0100 Subject: [PATCH] Fixed: Unable to continue to Step 3 in One Page Checkout (OFBIZ-11318) The following error is returned when trying to continue to Step3 when checking out using One Page Checkout. Could not create new purpose, a purpose with that type already exists.: [GenericEntity:PartyContactWithPurpose][contactFromDate,2020-01-05 19:48:18.29 (java.sql.Timestamp)][contactMechId,10020(java.lang.String)] [contactMechPurposeTypeId,SHIPPING_LOCATION(java.lang.String)] [partyId,admin(java.lang.String)][purposeFromDate,2020-01-05 19:48:18.332 (java.sql.Timestamp) It does not happen with DemoCustomer but at least with admin user It was caused by OFBIZ-10588. I checked for similar issues and found that, in unlike in createUpdateBillingAddress, in createUpdateShippingAddress and createUpdateCreditCard partyId was used without a prior setting from parameters.partyId Thanks: James Young for proposing a solution. I rather fixed otherwise this and another similar case in createUpdateCreditCard --- applications/order/minilang/order/OrderServices.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/applications/order/minilang/order/OrderServices.xml b/applications/order/minilang/order/OrderServices.xml index 4ecd3d06b9..39bccb5874 100644 --- a/applications/order/minilang/order/OrderServices.xml +++ b/applications/order/minilang/order/OrderServices.xml @@ -856,7 +856,8 @@ under the License. - + + @@ -1094,7 +1095,8 @@ under the License. - + +