Skip to content

Commit

Permalink
Merge pull request #2263 from aberenguel/2262_fix_handleAttachment
Browse files Browse the repository at this point in the history
#2262: if extracted_path does not reference a ufedId, use the ufedId of attached file
  • Loading branch information
lfcnassif authored Oct 13, 2024
2 parents c22cb54 + f52a7f3 commit cdb5ebe
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,11 @@ private String handleAttachment(Item item) {
// Replace extracted path by attached file's local path
extracted_path = ufedFileIdToLocalPath.get(item.getMetadata().get(FILE_ID_ATTR));
}

// if extracted_path does not reference a ufedId, use the ufedId of attached file
if (ufedId == null && ufedFileIdToLocalPath.containsKey(item.getMetadata().get(FILE_ID_ATTR))) {
ufedId = item.getMetadata().get(FILE_ID_ATTR);
}

}
setContent(item, extracted_path);
Expand Down

0 comments on commit cdb5ebe

Please sign in to comment.