Skip to content
Snippets Groups Projects
Commit b25164da authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge branch 'master' of git://scm.thm.de/arsnova/arsnova-backend

parents 068a67ec 6e73487d
No related merge requests found
......@@ -410,8 +410,15 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis
} else if (question.getPiRound() < 1 || question.getPiRound() > 2) {
question.setPiRound(oldQuestion.getPiRound() > 0 ? oldQuestion.getPiRound() : 1);
}
final Question result = databaseDao.updateQuestion(question);
return databaseDao.updateQuestion(question);
if(!oldQuestion.isActive() && question.isActive()) {
final NewQuestionEvent event = new NewQuestionEvent(this, result, session);
this.publisher.publishEvent(event);
}
return result;
}
@Override
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment