legal basis can change value for rectangles
This commit is contained in:
parent
8250714e32
commit
48c100c25a
@ -18,6 +18,7 @@ public class ManualLegalBasisChange {
|
|||||||
private Status status;
|
private Status status;
|
||||||
private String legalBasis;
|
private String legalBasis;
|
||||||
private String section;
|
private String section;
|
||||||
|
private String value;
|
||||||
|
|
||||||
private OffsetDateTime requestDate;
|
private OffsetDateTime requestDate;
|
||||||
private OffsetDateTime processedDate;
|
private OffsetDateTime processedDate;
|
||||||
|
|||||||
@ -182,6 +182,9 @@ public class RedactionLogMergeService {
|
|||||||
if (manualLegalBasisChange.getSection() != null) {
|
if (manualLegalBasisChange.getSection() != null) {
|
||||||
redactionLogEntry.setSection(manualLegalBasisChange.getSection());
|
redactionLogEntry.setSection(manualLegalBasisChange.getSection());
|
||||||
}
|
}
|
||||||
|
if (redactionLogEntry.isRectangle() && manualLegalBasisChange.getValue() != null) {
|
||||||
|
redactionLogEntry.setValue(manualLegalBasisChange.getValue());
|
||||||
|
}
|
||||||
} else if (manualLegalBasisChange.getStatus().equals(Status.REQUESTED)) {
|
} else if (manualLegalBasisChange.getStatus().equals(Status.REQUESTED)) {
|
||||||
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", legal basis change requested");
|
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", legal basis change requested");
|
||||||
redactionLogEntry.setStatus(Status.REQUESTED);
|
redactionLogEntry.setStatus(Status.REQUESTED);
|
||||||
@ -218,8 +221,8 @@ public class RedactionLogMergeService {
|
|||||||
|
|
||||||
|
|
||||||
private List<RedactionLogEntry> addManualAddEntries(SectionGrid sectionGrid,
|
private List<RedactionLogEntry> addManualAddEntries(SectionGrid sectionGrid,
|
||||||
Set<ManualRedactionEntry> manualAdds,
|
Set<ManualRedactionEntry> manualAdds,
|
||||||
Map<String, List<Comment>> comments, String dossierTemplateId) {
|
Map<String, List<Comment>> comments, String dossierTemplateId) {
|
||||||
|
|
||||||
List<RedactionLogEntry> redactionLogEntries = new ArrayList<>();
|
List<RedactionLogEntry> redactionLogEntries = new ArrayList<>();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user