Pull request #361: Fixed problem with imported redactions and images

Merge in RED/redaction-service from imageImportedFix to release/3.80.x

* commit 'b3289787e07286e0738d6e1bc0065e5f00edf2c8':
  Fixed problem with imported redactions and images
This commit is contained in:
Dominique Eiflaender 2022-03-29 15:45:04 +02:00
commit 020e2e0302

View File

@ -31,7 +31,7 @@ public class ImportedRedactionService {
return redactionLogEntries;
}
redactionLogEntries.removeIf(redactionLogEntry -> hasIntersections(redactionLogEntry, importedRedactions));
redactionLogEntries.removeIf(redactionLogEntry -> !redactionLogEntry.isImage() && hasIntersections(redactionLogEntry, importedRedactions));
if (addImportedRedactions) {
return addImportedRedactionsRedactionLogEntries(dossierTemplateId, redactionLogEntries, importedRedactions);