RED-1637: Fixed hasImages flag

This commit is contained in:
Dominique Eifländer 2021-06-25 10:57:20 +02:00
parent 6fd4115e93
commit 5d5b3529cd

View File

@ -27,7 +27,7 @@ public class AnalyzeResponseService {
boolean hasImages = redactionLog.getRedactionLogEntry()
.stream()
.filter(entry -> !entry.isExcluded())
.anyMatch(entry -> entry.isHint() && entry.getType().equals("image"));
.anyMatch(entry -> entry.isHint() && entry.getType().equals("image") || entry.isImage());
boolean hasUpdates = redactionChangeLog != null && redactionChangeLog.getRedactionLogEntry() != null && !redactionChangeLog
.getRedactionLogEntry()