Fixed problem with imported redactions and images

This commit is contained in:
deiflaender 2022-03-29 15:22:01 +02:00
parent 9ad923c314
commit b3289787e0

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);