now connecting ideas to application periods when supervisors pre-added authors and one of the authors accept it

This commit is contained in:
Emil Siverhall 2012-07-30 14:59:19 +02:00
parent c98549a0f7
commit 21c75abeb7

@ -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