fix merge bug

This commit is contained in:
Anton Romanov 2019-04-24 13:45:09 +04:00
parent bb2518e5f4
commit 4dd0a6c210

View File

@ -93,7 +93,7 @@ public class GrantService {
}
grant.getPapers().clear();
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;
}