related to bug 29313: code cleanup
authorAsier Lostalé <asier.lostale@openbravo.com>
Wed, 18 Mar 2015 09:10:10 +0100
changeset 26201 bb2fdcffc429
parent 26200 7b67971d79d2
child 26202 fe1d0d1cf4ba
related to bug 29313: code cleanup

removed unneeded code
src/org/openbravo/erpCommon/businessUtility/TabAttachments.java
--- a/src/org/openbravo/erpCommon/businessUtility/TabAttachments.java	Wed Mar 18 09:08:59 2015 +0100
+++ b/src/org/openbravo/erpCommon/businessUtility/TabAttachments.java	Wed Mar 18 09:10:10 2015 +0100
@@ -270,7 +270,6 @@
     try {
       String tabId = vars.getStringParameter("tabId");
       String recordIds = vars.getStringParameter("recordIds");
-      String buttonId = vars.getStringParameter("buttonId");
       Tab tab = OBDal.getInstance().get(Tab.class, tabId);
       String tableId = (String) DalUtil.getId(tab.getTable());
 
@@ -290,7 +289,6 @@
       response.setContentType("application/zip");
       response.setHeader("Content-Disposition", "attachment; filename=attachments.zip");
       final ZipOutputStream dest = new ZipOutputStream(response.getOutputStream());
-      attachmentFiles.list().toArray();
       HashMap<String, Integer> writtenFiles = new HashMap<String, Integer>();
       for (Attachment attachmentFile : attachmentFiles.list()) {
         String attachmentDirectory = TabAttachments.getAttachmentDirectory(tableId,