Pull request #327: RED-3285: Set redacted to false if imagerecategorization type is a hint

Merge in RED/redaction-service from RED-3285 to release/2.52.x

* commit 'ca178d46d5990d1b381dca1172bf84ea5765f563':
  RED-3285: Set redacted to false if imagerecategorization type is a hint
This commit is contained in:
Dominique Eiflaender 2022-01-26 10:52:12 +01:00
commit 32dc91a873

View File

@ -108,7 +108,14 @@ public class RedactionLogMergeService {
redactionLogEntry.setStatus(Status.APPROVED);
redactionLogEntry.setType(imageRecategorization.getType());
redactionLogEntry.setHasBeenRecategorized(true);
// RED-2622
if (dictionaryService.isHint(imageRecategorization.getType(), dossierTemplateId)) {
redactionLogEntry.setRedacted(false);
redactionLogEntry.setHint(true);
} else {
redactionLogEntry.setHint(false);
}
redactionLogEntry.setSection("Image:" + redactionLogEntry.getType());
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", recategorized by manual override");
} else if (imageRecategorization.getStatus().equals(Status.REQUESTED)) {