Fix solves an issue that always pageError(response) was called resulting in an exception (getOutputStream() already called). This exception was only visible in the console and did not interfere with the working of the application.
authorMartin Taal <martin.taal@openbravo.com>
Wed, 03 Dec 2008 17:51:35 +0000
changeset 2210 ea089ce27b68
parent 2209 6597f214e8d1
child 2211 91f790b07f3b
Fix solves an issue that always pageError(response) was called resulting in an exception (getOutputStream() already called). This exception was only visible in the console and did not interfere with the working of the application.
src/org/openbravo/erpCommon/ad_process/ApplyModules.java
--- a/src/org/openbravo/erpCommon/ad_process/ApplyModules.java	Wed Dec 03 16:06:05 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ApplyModules.java	Wed Dec 03 17:51:35 2008 +0000
@@ -54,17 +54,13 @@
 
         if (vars.commandIn("DEFAULT")) {
             printPage(response, vars);
-        }
-        if (vars.commandIn("STARTAPPLY")) {
+        } else if (vars.commandIn("STARTAPPLY")) {
             startApply(response, vars);
-        }
-        if (vars.commandIn("UPDATELOG")) {
+        } else if (vars.commandIn("UPDATELOG")) {
             updateLog(response, vars);
-        }
-        if (vars.commandIn("GETERR")) {
+        } else if (vars.commandIn("GETERR")) {
             getError(response, vars);
         } else {
-            System.err.println(vars.getCommand());
             pageError(response);
         }
     }