status fix

This commit is contained in:
Timo Bejan 2022-03-15 11:22:53 +02:00
parent 552125aeaa
commit 1347615487

View File

@ -658,7 +658,7 @@ public class ManualRedactionService {
boolean removeFromDictionary, boolean revert) { boolean removeFromDictionary, boolean revert) {
if (status == AnnotationStatus.APPROVED) { if (status == AnnotationStatus.APPROVED) {
removeRedactionPersistenceService.updateStatus(fileId, annotationId, status, removeFromDictionary);
if (removeFromDictionary) { if (removeFromDictionary) {
Optional<RedactionLogEntry> redactionLogEntryOptional = redactionLog.getRedactionLogEntry() Optional<RedactionLogEntry> redactionLogEntryOptional = redactionLog.getRedactionLogEntry()
@ -677,10 +677,8 @@ public class ManualRedactionService {
} else { } else {
removeFromDictionary(buildTypeId(redactionLogEntry, dossier), redactionLogEntry.getValue(), dossier.getId(), fileId, DictionaryEntryType.ENTRY); removeFromDictionary(buildTypeId(redactionLogEntry, dossier), redactionLogEntry.getValue(), dossier.getId(), fileId, DictionaryEntryType.ENTRY);
} }
return true; return true;
} }
removeRedactionPersistenceService.updateStatus(fileId, annotationId, status, removeFromDictionary);
} }
return false; return false;
} }