RED-7384: Do not use value from RESIZE change, since images don't use that and the value is now updated in the EntityLogMergeService

This commit is contained in:
Kilian Schuettler 2024-03-25 16:00:43 +01:00
parent cb35f50915
commit 759e52090e

View File

@ -169,7 +169,7 @@ public class EntityLogConverterService {
.map(EntityLogLegalBasis::getDescription)
.orElse(""),
checkTextForNull(entry.getTextBefore()) + entry.getValue() + checkTextForNull(entry.getTextAfter()),
determineValue(entry),
entry.getValue(),
mapOfEntityDisplayName.get(entry.getType()),
entry.getState() == EntryState.SKIPPED || entry.getState() == EntryState.IGNORED));
}
@ -198,21 +198,6 @@ public class EntityLogConverterService {
}
private String determineValue(EntityLogEntry entry) {
if (entry.getManualChanges() != null && !entry.getManualChanges().isEmpty()) {
ManualChange lastChange = getLastManualChange(entry);
if ((lastChange.getManualRedactionType().equals(ManualRedactionType.RESIZE) || lastChange.getManualRedactionType().equals(ManualRedactionType.RESIZE_IN_DICTIONARY))
&& lastChange.getPropertyChanges() != null) {
return lastChange.getPropertyChanges()
.get("value");
}
}
return entry.getValue();
}
private String getSection(EntityLogEntry entry, Position position) {
if (StringUtils.isNotBlank(entry.getSection())) {