Skip to content

Commit

Permalink
implementation
Browse files Browse the repository at this point in the history
Issue #92
  • Loading branch information
rsoika committed Jun 11, 2020
1 parent b3dc1cf commit fd7334b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public void onSave(@Observes DocumentEvent documentEvent) {
isBlobWorkitem);
}

// 5. remove file data and optional content form the origin-workitem
// 5. remove file data object
List<FileData> files = documentEvent.getDocument().getFileData();
// empty data...
byte[] empty = {};
Expand All @@ -301,8 +301,6 @@ public void onSave(@Observes DocumentEvent documentEvent) {
logger.fine("drop content for file '" + fileData.getName() + "'");
FileData _fileData = new FileData(fileData.getName(), empty, fileData.getContentType(),
fileData.getAttributes());
// empty the optional content attribute (the data is collected in the dms item)
_fileData.getAttributes().remove("content");
documentEvent.getDocument().addFileData(_fileData);
}
}
Expand Down

0 comments on commit fd7334b

Please sign in to comment.