RED-7384: Fixed missing requestDate in new created manualRedactions for resizes
This commit is contained in:
parent
dc7910cd07
commit
76f587aae4
@ -379,6 +379,12 @@ public final class MigrationEntity {
|
|||||||
.findFirst()
|
.findFirst()
|
||||||
.orElse(manualChanges.get(0)).getUser();
|
.orElse(manualChanges.get(0)).getUser();
|
||||||
|
|
||||||
|
var requestDate = manualChanges.stream()
|
||||||
|
.filter(mc -> mc instanceof ManualResizeRedaction)
|
||||||
|
.findFirst()
|
||||||
|
.orElse(manualChanges.get(0)).getRequestDate();
|
||||||
|
|
||||||
|
|
||||||
return ManualRedactionEntry.builder()
|
return ManualRedactionEntry.builder()
|
||||||
.annotationId(newId)
|
.annotationId(newId)
|
||||||
.fileId(fileId)
|
.fileId(fileId)
|
||||||
@ -387,6 +393,7 @@ public final class MigrationEntity {
|
|||||||
.reason(redactionLogEntry.getReason())
|
.reason(redactionLogEntry.getReason())
|
||||||
.legalBasis(redactionLogEntry.getLegalBasis())
|
.legalBasis(redactionLogEntry.getLegalBasis())
|
||||||
.section(redactionLogEntry.getSection())
|
.section(redactionLogEntry.getSection())
|
||||||
|
.requestDate(requestDate)
|
||||||
.addToDictionary(false)
|
.addToDictionary(false)
|
||||||
.addToDossierDictionary(false)
|
.addToDossierDictionary(false)
|
||||||
.rectangle(false)
|
.rectangle(false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user