RED-10511: False warnings when approving file appears after justification refactoring
This commit is contained in:
parent
65041c2b7a
commit
e393d70186
@ -51,7 +51,7 @@ public class ApprovalVerificationService {
|
||||
addWarning(entry, WarningType.LEGAL_BASIS_MISSING, approveResponse);
|
||||
} else {
|
||||
var legalBasisEntity = legalBasisMappings.stream()
|
||||
.filter(mapping -> mapping.getReason().equals(entry.getLegalBasis()))
|
||||
.filter(mapping -> mapping.getTechnicalName().equals(entry.getLegalBasis()))
|
||||
.findFirst();
|
||||
if (legalBasisEntity.isEmpty() || StringUtils.isEmpty(legalBasisEntity.get().getTechnicalName())) {
|
||||
addWarning(entry, WarningType.UNMAPPED_JUSTIFICATION, approveResponse);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user