RED-6852 - Not possible to delete specific dossier - Error code 500 returned

- set the flag local manual redaction true in case the manual redaction type is RESIZE and engine has RULE value
This commit is contained in:
Corina Olariu 2023-07-27 09:16:33 +03:00
parent c3d0a9c2ed
commit 4abbd04fe9

View File

@ -87,7 +87,8 @@ public class RedactionLogEntry {
public boolean isLocalManualRedaction() {
return manualChanges != null && manualChanges.stream()
.anyMatch(mc -> mc.getManualRedactionType() == ManualRedactionType.ADD_LOCALLY && mc.getAnnotationStatus() == AnnotationStatus.APPROVED);
.anyMatch(mc -> mc.getManualRedactionType() == ManualRedactionType.ADD_LOCALLY && mc.getAnnotationStatus() == AnnotationStatus.APPROVED
|| mc.getManualRedactionType() == ManualRedactionType.RESIZE && mc.getAnnotationStatus() == AnnotationStatus.APPROVED && engines.contains(Engine.RULE));
}