Skip to content
Snippets Groups Projects
Commit b897fc72 authored by srosse's avatar srosse
Browse files

OO-3320: always delete evaluation session hold by the page body

parent 082cfea7
No related branches found
No related tags found
No related merge requests found
...@@ -460,11 +460,7 @@ public class PageDAO { ...@@ -460,11 +460,7 @@ public class PageDAO {
.setParameter("pageKey", page.getKey()) .setParameter("pageKey", page.getKey())
.executeUpdate(); .executeUpdate();
int evaluations = 0; int evaluations = evaluationFormSessionDao.deleteSessionForPortfolioEvaluation(body);
if(assignments > 0) {
// delete sessions and responses
evaluations = evaluationFormSessionDao.deleteSessionForPortfolioEvaluation(body);
}
dbInstance.getCurrentEntityManager().remove(page); dbInstance.getCurrentEntityManager().remove(page);
dbInstance.getCurrentEntityManager().remove(body); dbInstance.getCurrentEntityManager().remove(body);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment