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

OO-4120: don't send reminders of closed courses

parent 830908b6
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ public class ReminderDAO { ...@@ -142,7 +142,7 @@ public class ReminderDAO {
sb.append("select rem from reminder rem") sb.append("select rem from reminder rem")
.append(" inner join rem.entry entry") .append(" inner join rem.entry entry")
.append(" where (rem.startDate is null or rem.startDate<=:startDate)") .append(" where (rem.startDate is null or rem.startDate<=:startDate)")
.append(" and entry.status ").in(RepositoryEntryStatusEnum.preparationToClosed()); .append(" and entry.status ").in(RepositoryEntryStatusEnum.preparationToPublished());
return dbInstance.getCurrentEntityManager() return dbInstance.getCurrentEntityManager()
.createQuery(sb.toString(), Reminder.class) .createQuery(sb.toString(), Reminder.class)
......
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