Merge branch 'RED-7918-processremoval' into 'release/3.222.x'

RED-7918 - RM-62: "Last Modified" date not updated after change

See merge request redactmanager/redaction-service!205
This commit is contained in:
Corina Olariu 2023-11-23 08:46:57 +01:00
commit c76b79de2d

View File

@ -285,7 +285,7 @@ public class RedactionLogMergeService {
private void processIdRemoval(RedactionLogEntry redactionLogEntry, List<Type> types, Colors colors, IdRemoval manualRemoval) {
boolean isApprovedRedaction = manualRemoval.getStatus().equals(AnnotationStatus.APPROVED);
if (isApprovedRedaction && manualRemoval.isRemoveFromDictionary() && isBasedOnDictionaryOnly(redactionLogEntry)) {
if (isApprovedRedaction && manualRemoval.isRemoveFromDictionary() && manualRemoval.getProcessedDate() != null && isBasedOnDictionaryOnly(redactionLogEntry)) {
log.debug("Skipping merge for dictionary-modifying entry");
} else {
String redactionLogEntryType = redactionLogEntry.getType();