RED-8878: Do not add redacted flag for REMOVED entries

This commit is contained in:
Dominique Eifländer 2024-04-02 15:13:36 +02:00
parent ca7c7000d6
commit 2522a5bbff

View File

@ -105,11 +105,11 @@ public class AnalysisFlagsCalculationService {
lastRedactionModification = lastChange.getDateTime();
}
if (!hasRedactions && entry.isRedacted() && !entry.isRecommendation()) {
if (!hasRedactions && entry.isRedacted() && !entry.isRecommendation() && (lastChange == null || lastChange.getType() != ChangeType.REMOVED)) {
hasRedactions = true;
}
if (!hasHints && entry.isHint()) {
if (!hasHints && entry.isHint() && (lastChange == null || lastChange.getType() != ChangeType.REMOVED)) {
hasHints = true;
}