[Bug #1301] Fix issue creating a container in a task with dependencies

Now TaskElement::detachDependencies remove them from both current task and
related. As for the moment it was just doing it in the related tasks, but
dependencies remain in current task and were removed later together with the
current task.

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-12-21 12:16:09 +01:00
parent 50c83ccfd8
commit 3aeea3808a

View file

@ -490,6 +490,7 @@ public abstract class TaskElement extends BaseEntity {
}
}
for (TaskElement taskElement : tasksToNotify) {
this.removeDependenciesWithOrigin(taskElement);
taskElement.removeDependenciesWithDestination(this);
}
}
@ -503,6 +504,7 @@ public abstract class TaskElement extends BaseEntity {
}
}
for (TaskElement taskElement : tasksToNotify) {
this.removeDependenciesWithDestination(taskElement);
taskElement.removeDependenciesWithOrigin(this);
}
}