Bug #1433: Fix the problem when there are multiple levels of tasks involved.

FEA: ItEr76S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2012-05-07 16:38:21 +02:00
parent 5edf9998ff
commit 36b03ea1e7

View file

@ -317,7 +317,11 @@ public abstract class OrderElement extends IntegrationEntity implements
if(currentTaskSourceIsNotTheSame()) {
//all the children of this element were unscheduled and then scheduled again,
//its TaskSource has been recreated but we have to remove the old one.
result.add(taskSourceRemoval());
if(getParent() == null || !getParent().currentTaskSourceIsNotTheSame()) {
//if it's a container node inside another container we could have the
//same problem than in the case of leaf tasks.
result.add(taskSourceRemoval());
}
}
result
.add(synchronizationForSuperelement(schedulingDataForVersion));