TSK-1143 UpdateTask planned - comments from Holger
This commit is contained in:
parent
403d57fc8a
commit
9251975f47
|
|
@ -245,9 +245,6 @@ class ServiceLevelHandler {
|
||||||
private TaskImpl updatePlannedDueOnTaskUpdate(
|
private TaskImpl updatePlannedDueOnTaskUpdate(
|
||||||
TaskImpl newTaskImpl, TaskImpl oldTaskImpl, DurationPrioHolder durationPrioHolder)
|
TaskImpl newTaskImpl, TaskImpl oldTaskImpl, DurationPrioHolder durationPrioHolder)
|
||||||
throws InvalidArgumentException {
|
throws InvalidArgumentException {
|
||||||
if (newTaskImpl.getPlanned() == null && newTaskImpl.getDue() == null) {
|
|
||||||
newTaskImpl.setPlanned(oldTaskImpl.getPlanned());
|
|
||||||
}
|
|
||||||
// case 1: no change of planned / due, but potentially change of an attachment or classification
|
// case 1: no change of planned / due, but potentially change of an attachment or classification
|
||||||
if (oldTaskImpl.getDue().equals(newTaskImpl.getDue())
|
if (oldTaskImpl.getDue().equals(newTaskImpl.getDue())
|
||||||
&& oldTaskImpl.getPlanned().equals(newTaskImpl.getPlanned())) {
|
&& oldTaskImpl.getPlanned().equals(newTaskImpl.getPlanned())) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue