RED-632: Set status DECLINED in RedactionLog for manual removals that are DECLINED

This commit is contained in:
deiflaender 2020-11-12 16:14:45 +01:00
parent 1792eb554e
commit 85d73dae47

View File

@ -134,6 +134,8 @@ public class AnnotationHighlightService {
requestedToRemove = true;
manualOverrideReason = entity.getRedactionReason() + ", requested to remove";
redactionLogEntry.setStatus(Status.REQUESTED);
} else {
redactionLogEntry.setStatus(Status.DECLINED);
}
entity.setRedactionReason(manualOverrideReason != null ? manualOverrideReason : entity.getRedactionReason());