supervisor is now removed when unmathing a project idea through admin interface

This commit is contained in:
Fredrik Friis 2012-02-10 12:16:42 +09:00
parent 167761d8e2
commit 0fb46d158c

@ -56,7 +56,9 @@ public class MatchDaoJPAImp extends AbstractDaoJPAImp<Match> implements
@Override
public Match changeStatus(User changer, Match match, Match.Status status) {
Match newMatch = new Match();
newMatch.setSupervisor(match.getSupervisor());
if (status != Match.Status.UNMATCHED){
newMatch.setSupervisor(match.getSupervisor());
}
newMatch.setType(match.getType());
if (status != null) {
newMatch.setStatus(status);