Fixes issue 9498: If Import Product process fails, it is not possible to launch the process again until database is restarted
authorSathiyan Sivaprakasam <sathiyan.sivaprakasam@openbravo.com>
Fri, 26 Jun 2009 15:40:07 +0530
changeset 4069 c260d5eeac1d
parent 4068 ed12d262cab5
child 4070 358f1274ca11
child 4110 e13575877e78
Fixes issue 9498: If Import Product process fails, it is not possible to launch the process again until database is restarted
src/org/openbravo/erpCommon/ad_process/ImportProduct.java
--- a/src/org/openbravo/erpCommon/ad_process/ImportProduct.java	Fri Jun 26 11:49:07 2009 +0530
+++ b/src/org/openbravo/erpCommon/ad_process/ImportProduct.java	Fri Jun 26 15:40:07 2009 +0530
@@ -204,6 +204,7 @@
       strcTaxcategoryId = ImportProductData.selectTaxCategory(conn, getAD_Client_ID());
       if (log4j.isDebugEnabled())
         log4j.debug("ImportProduct C_TaxCategory_ID =" + strcTaxcategoryId);
+      conn.releaseCommitConnection(con);
       if (strcTaxcategoryId == null || strcTaxcategoryId.equals("")) {
         // Default Tax category doesn't exist
         addLog(Utility.messageBD(conn, "MarkDefaultTaxCategory", vars.getLanguage()));
@@ -213,7 +214,6 @@
         return myError;
       }
 
-      conn.releaseCommitConnection(con);
     } catch (Exception se) {
       try {
         conn.releaseRollbackConnection(con);