Merge branch 'RM-76' into 'release/3.222.x'
RM-76: Ignore excluded page logic in stored redactionLog, always set value in RedactionLogMerge See merge request redactmanager/redaction-service!221
This commit is contained in:
commit
237d42fceb
@ -109,7 +109,7 @@ public class RedactionLogMergeService {
|
||||
|
||||
var skippedImportedRedactions = new HashSet<>();
|
||||
log.info("Merging Redaction log with manual redactions");
|
||||
if (manualRedactions != null) {
|
||||
if (manualRedactions != null) { // This is never null! Could be removed
|
||||
|
||||
var manualRedactionLogEntries = addManualAddEntries(sectionGrid,
|
||||
manualRedactions.getEntriesToAdd(),
|
||||
@ -136,8 +136,12 @@ public class RedactionLogMergeService {
|
||||
entry.getPositions().forEach(pos -> {
|
||||
if (!entry.isLocalManualRedaction() && excludedPages.contains(pos.getPage())) {
|
||||
entry.setExcluded(true);
|
||||
} else {
|
||||
entry.setExcluded(false); // This is a workaround, because in the analysis exlcuded is also set, but should not, because it triggers no reanalyis
|
||||
}
|
||||
});
|
||||
} else {
|
||||
entry.setExcluded(false); // This is a workaround, because in the analysis exlcuded is also set, but should not, because it triggers no reanalyis
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user