RED-3285: Set redacted to false if imagerecategorization type is a hint
This commit is contained in:
parent
69a24d11ba
commit
ca178d46d5
@ -108,7 +108,14 @@ public class RedactionLogMergeService {
|
|||||||
redactionLogEntry.setStatus(Status.APPROVED);
|
redactionLogEntry.setStatus(Status.APPROVED);
|
||||||
redactionLogEntry.setType(imageRecategorization.getType());
|
redactionLogEntry.setType(imageRecategorization.getType());
|
||||||
redactionLogEntry.setHasBeenRecategorized(true);
|
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());
|
redactionLogEntry.setSection("Image:" + redactionLogEntry.getType());
|
||||||
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", recategorized by manual override");
|
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", recategorized by manual override");
|
||||||
} else if (imageRecategorization.getStatus().equals(Status.REQUESTED)) {
|
} else if (imageRecategorization.getStatus().equals(Status.REQUESTED)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user