IDEMPIERE-2304 Some attachment related functionalities not working with filesystem store

This commit is contained in:
Carlos Ruiz 2014-11-05 14:33:20 -05:00
parent 545183280f
commit 1fabfda6d6
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ public class AttachmentFileSystem implements IAttachmentStore {
log.severe("Error Reading The File."); log.severe("Error Reading The File.");
e1.printStackTrace(); e1.printStackTrace();
} }
final MAttachmentEntry entry = new MAttachmentEntry(filePath, final MAttachmentEntry entry = new MAttachmentEntry(file.getName(),
dataEntry, attach.m_items.size() + 1); dataEntry, attach.m_items.size() + 1);
attach.m_items.add(entry); attach.m_items.add(entry);
} else { } else {