#64 excluded adding articles with the same name

This commit is contained in:
Nightblade73 2019-04-24 10:17:32 +04:00
parent fe55890518
commit d37c9bda57

View File

@ -113,7 +113,7 @@ public class ConferenceService {
public void addPaper(ConferenceDto conferenceDto) {
Paper paper = new Paper();
paper.setTitle(userService.getCurrentUser().getLastName() + "_" + conferenceDto.getTitle());
paper.setTitle(userService.getCurrentUser().getLastName() + "_" + conferenceDto.getTitle() + "_" + (new Date()).getTime());
paper.setStatus(Paper.PaperStatus.DRAFT);
conferenceDto.getPapers().add(paper);