now inheriting due date when child task is created
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -65,6 +65,11 @@ public class Task implements Mappable {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Task dueDate(LocalDate newValue) {
|
||||
dueDate = newValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
public LocalDate dueDate(){
|
||||
return dueDate;
|
||||
}
|
||||
|
||||
@@ -355,6 +355,7 @@ public class TaskModule extends BaseHandler implements TaskService {
|
||||
|
||||
json.put(MEMBERS, Map.of()); // reset member map for task-to-be-created
|
||||
Task task = Task.of(json);
|
||||
if (parentTask != null && parentTask.dueDate() != null && task.dueDate() == null) task.dueDate(parentTask.dueDate());
|
||||
task = taskDb.save(task);
|
||||
|
||||
// do actual member assignment
|
||||
|
||||
Reference in New Issue
Block a user