Fixed issue 17805. Fixed issue 17791.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Tue, 28 Jun 2011 10:11:43 +0200
changeset 9541 5d3ac3ba6234
parent 9540 8aa76245c78b
child 9542 845811ab032b
child 9552 54219a618db1
Fixed issue 17805. Fixed issue 17791.
src-db/database/lib/dbsourcemanager.jar
src/org/openbravo/erpCommon/ad_process/ApplyModules.html
src/org/openbravo/erpCommon/ad_process/ApplyModulesCallServlet.java
Binary file src-db/database/lib/dbsourcemanager.jar has changed
--- a/src/org/openbravo/erpCommon/ad_process/ApplyModules.html	Fri Jun 17 15:29:31 2011 +0200
+++ b/src/org/openbravo/erpCommon/ad_process/ApplyModules.html	Tue Jun 28 10:11:43 2011 +0200
@@ -253,7 +253,12 @@
           }
         }
         if(response.statusofstate=="Error"){
-          var errs=response.errors.string;
+          var errs;
+          if(response.errors instanceof Array){
+              errs=response.errors[0].string;
+          }else{
+              errs=response.errors.string;
+          }
           if(errs){
             if(!(errs instanceof Array)){
               errs=[errs];
--- a/src/org/openbravo/erpCommon/ad_process/ApplyModulesCallServlet.java	Fri Jun 17 15:29:31 2011 +0200
+++ b/src/org/openbravo/erpCommon/ad_process/ApplyModulesCallServlet.java	Tue Jun 28 10:11:43 2011 +0200
@@ -172,7 +172,7 @@
     boolean warning = false;
     boolean error = false;
     try {
-      ps2 = getPreparedStatement("SELECT MESSAGE, SYSTEM_STATUS, LINE_NUMBER FROM AD_ERROR_LOG WHERE ERROR_LEVEL='ERROR' ORDER BY CREATED ");
+      ps2 = getPreparedStatement("SELECT MESSAGE, SYSTEM_STATUS, LINE_NUMBER FROM AD_ERROR_LOG WHERE ERROR_LEVEL='ERROR' AND MESSAGE NOT LIKE 'Task%' AND MESSAGE NOT LIKE 'Target%' ORDER BY CREATED DESC");
       ps2.executeQuery();
       ResultSet rs2 = ps2.getResultSet();
       ArrayList<String> errors = new ArrayList<String>();