[Bug #1113] Fix issue marking as not transient all allocations

To reproduce the issue is was needed to create a resource allocation not
satisfied and save it twice.

The problem was that only satisfied allocations were being marked as not
transient.

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-08-02 18:51:59 +02:00
parent 5c564f2b1e
commit 313f66c0e0

View file

@ -384,7 +384,7 @@ public class SaveCommand implements ISaveCommand {
dontPoseAsTransient(taskElement.getDependenciesWithThisOrigin());
dontPoseAsTransient(taskElement.getDependenciesWithThisDestination());
Set<ResourceAllocation<?>> resourceAllocations = taskElement
.getSatisfiedResourceAllocations();
.getAllResourceAllocations();
dontPoseAsTransientAndChildrenObjects(resourceAllocations);
if (!taskElement.isLeaf()) {
for (TaskElement each : taskElement.getChildren()) {