Deliver Task only if it is no subtask to TaskOverview
This commit is contained in:
parent
dfe12e6102
commit
125ab10a00
@ -31,10 +31,13 @@ public class RecursiveTaskgroupInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(Task task : taskgroup.getActiveTasks()) {
|
for(Task task : taskgroup.getActiveTasks()) {
|
||||||
this.activeTasks.add(new TaskOverviewInfo(task));
|
if(task.getParent() == null) {
|
||||||
if(task.getDeadline() != null && task.getDeadline().isBefore(LocalDate.now())) {
|
this.activeTasks.add(new TaskOverviewInfo(task));
|
||||||
this.hasOverdueTask = true;
|
if(task.getDeadline() != null && task.getDeadline().isBefore(LocalDate.now())) {
|
||||||
|
this.hasOverdueTask = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
this.amountActiveTasks = taskgroup.getAmountOfActiveTasks();
|
this.amountActiveTasks = taskgroup.getAmountOfActiveTasks();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user