issue-77 #105
@ -90,7 +90,9 @@ public class TaskService {
|
|||||||
public void deleteTask(Task task) {
|
public void deleteTask(Task task) {
|
||||||
task.getTaskgroup().getTasks().remove(task);
|
task.getTaskgroup().getTasks().remove(task);
|
||||||
taskgroupRepository.save(task.getTaskgroup());
|
taskgroupRepository.save(task.getTaskgroup());
|
||||||
taskSeriesService.deleteTaskSeriesItem(task);
|
if(task.getTaskSerieItem() != null) {
|
||||||
|
taskSeriesService.deleteTaskSeriesItem(task);
|
||||||
|
}
|
||||||
taskRepository.delete(task);
|
taskRepository.delete(task);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user