From 313f66c0e03f2c26759a2d0d4c9316d07c34db8b Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Tue, 2 Aug 2011 18:51:59 +0200 Subject: [PATCH] [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 --- .../java/org/navalplanner/web/planner/order/SaveCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navalplanner-webapp/src/main/java/org/navalplanner/web/planner/order/SaveCommand.java b/navalplanner-webapp/src/main/java/org/navalplanner/web/planner/order/SaveCommand.java index 59b2072c3..baeea1a0c 100644 --- a/navalplanner-webapp/src/main/java/org/navalplanner/web/planner/order/SaveCommand.java +++ b/navalplanner-webapp/src/main/java/org/navalplanner/web/planner/order/SaveCommand.java @@ -384,7 +384,7 @@ public class SaveCommand implements ISaveCommand { dontPoseAsTransient(taskElement.getDependenciesWithThisOrigin()); dontPoseAsTransient(taskElement.getDependenciesWithThisDestination()); Set> resourceAllocations = taskElement - .getSatisfiedResourceAllocations(); + .getAllResourceAllocations(); dontPoseAsTransientAndChildrenObjects(resourceAllocations); if (!taskElement.isLeaf()) { for (TaskElement each : taskElement.getChildren()) {