fixed bug 20311: NPE when printing multiple documents
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 20 Apr 2012 09:11:01 +0200
changeset 16511 4a738ea029c9
parent 16510 0f6fea21f041
child 16512 46f6c549a415
fixed bug 20311: NPE when printing multiple documents

Hidden tags in this case was inccorectly set.
src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
--- a/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java	Wed Apr 18 13:06:17 2012 +0200
+++ b/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java	Fri Apr 20 09:11:01 2012 +0200
@@ -1220,7 +1220,7 @@
       } else {
         final String[] discardAux = new String[discard.length + 1];
         for (int i = 0; i < discard.length; i++) {
-          discardAux[0] = discard[0];
+          discardAux[i] = discard[i];
         }
         discardAux[discard.length] = "discardSelect";
         return discardAux;