idRemoval fix

This commit is contained in:
Timo 2021-01-08 11:29:47 +02:00
parent a8fdfc4edd
commit e3a960d086

View File

@ -125,7 +125,7 @@ public class AnnotationHighlightService {
if (manualRemoval.getId().equals(entityPositionSequence.getId())) { if (manualRemoval.getId().equals(entityPositionSequence.getId())) {
comments = manualRedactions.getComments().get(manualRemoval.getId()); comments = manualRedactions.getComments().get(manualRemoval.getId());
String manualOverrideReason = null; String manualOverrideReason = null;
if (manualRemoval.getStatus().equals(Status.APPROVED)) { if (manualRemoval.getStatus().equals(Status.APPROVED) && manualRemoval.isRemoveFromDictionary()) {
entity.setRedaction(false); entity.setRedaction(false);
redactionLogEntry.setRedacted(false); redactionLogEntry.setRedacted(false);
redactionLogEntry.setStatus(Status.APPROVED); redactionLogEntry.setStatus(Status.APPROVED);