From d172b9dc457e0dfaa835e7fce0cccda3fca570d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Gonz=C3=A1lez=20Fern=C3=A1ndez?= Date: Mon, 3 May 2010 22:11:33 +0200 Subject: [PATCH] ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #430] Fix bug. The derivedAllocations weren't being updated. --- .../business/planner/entities/ResourceAllocation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/ResourceAllocation.java b/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/ResourceAllocation.java index dcfe4eb87..25f9ad2e5 100644 --- a/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/ResourceAllocation.java +++ b/navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/ResourceAllocation.java @@ -715,8 +715,8 @@ public abstract class ResourceAllocation extends Collection derivedAllocations) { // avoiding error: A collection with cascade="all-delete-orphan" was no // longer referenced by the owning entity instance - derivedAllocations.clear(); - derivedAllocations.addAll(derivedAllocations); + this.derivedAllocations.clear(); + this.derivedAllocations.addAll(derivedAllocations); } public Set getDerivedAllocations() {