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:
commit
32dc91a873
@ -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