Related with issue 31317: The condition when the command is ADD is removed.
authorNaroa Iriarte <naroa.iriarte@openbravo.com>
Mon, 09 Nov 2015 12:58:54 +0100
changeset 27844 710400f71264
parent 27843 797fabffe660
child 27845 d14b031058e5
child 27852 f37f05074060
child 28517 bf5de94c2bd9
Related with issue 31317: The condition when the command is ADD is removed.

The "else if (request.getServletPath().toLowerCase().indexOf(SEND_PATH) != -1) {"
Condition should be removed for the correct behaviour of the attachments in the email sending.
src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
--- a/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java	Mon Nov 09 16:06:16 2015 +0100
+++ b/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java	Mon Nov 09 12:58:54 2015 +0100
@@ -322,7 +322,7 @@
           if (request.getServletPath().toLowerCase().indexOf(PRINT_PATH) != -1)
             createPrintOptionsPage(request, response, vars, documentType,
                 getComaSeparatedString(documentIds), reports);
-          else if (request.getServletPath().toLowerCase().indexOf(SEND_PATH) != -1) {
+          else {
             createEmailOptionsPage(request, response, vars, documentType,
                 getComaSeparatedString(documentIds), reports, checks, fullDocumentIdentifier);
           }