From 21c75abeb79d0570c0664e9b0c7a07d89a7c7566 Mon Sep 17 00:00:00 2001 From: Emil Siverhall <emil-siv@dsv.su.se> Date: Mon, 30 Jul 2012 14:59:19 +0200 Subject: [PATCH] now connecting ideas to application periods when supervisors pre-added authors and one of the authors accept it --- .../springdata/serviceimpls/SupervisorIdeaServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/se/su/dsv/scipro/springdata/serviceimpls/SupervisorIdeaServiceImpl.java b/src/main/java/se/su/dsv/scipro/springdata/serviceimpls/SupervisorIdeaServiceImpl.java index 270b47c5a8..ff29cfbf6d 100644 --- a/src/main/java/se/su/dsv/scipro/springdata/serviceimpls/SupervisorIdeaServiceImpl.java +++ b/src/main/java/se/su/dsv/scipro/springdata/serviceimpls/SupervisorIdeaServiceImpl.java @@ -134,6 +134,9 @@ public class SupervisorIdeaServiceImpl extends AbstractQueryService<SupervisorId for (IdeaParticipation ip : idea.getIdeaParticipations()) if(ip.getStudent().equals(author)) ip.setConfirmed(true); + if(idea.getApplicationPeriod()==null) { + idea.setApplicationPeriod(applicationPeriodService.getCurrentPeriod(new Date(), idea.getProjectClass())); + } } @Override