Pull request #150: RED-4123: Do not add DECLINED ADD_LOCALLY redactions to reports

Merge in RED/redaction-report-service from RED-4123 to master

* commit 'c52bf43ab498514f3a37dfab441669692ed06a68':
  RED-4123: Do not add DECLINED ADD_LOCALLY redactions to reports
This commit is contained in:
Dominique Eiflaender 2022-06-09 13:04:05 +02:00
commit 9afb4dc720

View File

@ -46,6 +46,13 @@ public class RedactionLogConverterService {
return;
}
if (entry.getManualChanges().size() != 0 && entry.getManualChanges().get(entry.getManualChanges().size() - 1).getManualRedactionType().equals(ManualRedactionType.ADD_LOCALLY) && entry.getManualChanges()
.get(entry.getManualChanges().size() - 1)
.getAnnotationStatus()
.equals(AnnotationStatus.DECLINED)) {
return;
}
Set<Integer> pages = new HashSet<>();
for (Rectangle position : entry.getPositions()) {