Merge branch 'RED-7384' into 'master'
RED-7384: Do not use value from RESIZE change, since images don't use that and... Closes RED-7384 See merge request redactmanager/redaction-report-service!59
This commit is contained in:
commit
532d2c4b0f
@ -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())) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user