diff --git a/src/main/java/de/metas/ui/web/attachments/DocumentAttachmentEntry.java b/src/main/java/de/metas/ui/web/attachments/DocumentAttachmentEntry.java index b4377f23e..413a0c126 100644 --- a/src/main/java/de/metas/ui/web/attachments/DocumentAttachmentEntry.java +++ b/src/main/java/de/metas/ui/web/attachments/DocumentAttachmentEntry.java @@ -1,6 +1,9 @@ package de.metas.ui.web.attachments; +import org.adempiere.util.Services; + import de.metas.attachments.AttachmentEntry; +import de.metas.attachments.IAttachmentDAO; import de.metas.ui.web.window.datatypes.DocumentId; /* @@ -62,7 +65,7 @@ public String getFilename() @Override public byte[] getData() { - return entry.getData(); + return Services.get(IAttachmentDAO.class).retrieveData(entry); } @Override