fix merge bug

environments/staging/deployments/42
Anton Romanov 5 years ago
parent bb2518e5f4
commit 4dd0a6c210

@ -93,7 +93,7 @@ public class GrantService {
} }
grant.getPapers().clear(); grant.getPapers().clear();
if (grantDto.getPaperIds() != null && !grantDto.getPaperIds().isEmpty()) { if (grantDto.getPaperIds() != null && !grantDto.getPaperIds().isEmpty()) {
grantDto.getPaperIds().forEach(paperIds -> grant.getPapers().add(paperService.findEntityById(paperIds))); grantDto.getPaperIds().forEach(paperIds -> grant.getPapers().add(paperService.findPaperById(paperIds)));
} }
return grant; return grant;
} }

Loading…
Cancel
Save