diff --git a/applications/order/src/org/ofbiz/order/order/OrderServices.java b/applications/order/src/org/ofbiz/order/order/OrderServices.java index f2f8f5d67e..f9917501c0 100644 --- a/applications/order/src/org/ofbiz/order/order/OrderServices.java +++ b/applications/order/src/org/ofbiz/order/order/OrderServices.java @@ -5601,9 +5601,7 @@ public class OrderServices { } final EntityCondition cond = EntityCondition.makeCondition(orderCondList); List orderIds; - boolean beganTransaction = false; try { - beganTransaction = TransactionUtil.begin(); orderIds = TransactionUtil.doNewTransaction(new Callable>() { public List call() throws Exception { List orderIds = new LinkedList(); @@ -5624,18 +5622,7 @@ public class OrderServices { }, "getSalesOrderIds", 0, true); } catch (GenericEntityException e) { Debug.logError(e, module); - try { - TransactionUtil.rollback(beganTransaction, e.getMessage(), e); - } catch (GenericTransactionException e2) { - Debug.logError(e2, "Unable to rollback transaction", module); - } return ServiceUtil.returnError(e.getMessage()); - } finally { - try { - TransactionUtil.commit(beganTransaction); - } catch (GenericTransactionException e) { - Debug.logError(e, "Unable to commit transaction", module); - } } for (String orderId: orderIds) {