ItEr45S10CUAsignacionRecursosEspecificosAPlanificacionItEr44S16: [Bug #252] Fixing bug.

The problem was that the assignment function was reapplied and the
resources were not notified with the changes.
This commit is contained in:
Óscar González Fernández 2010-01-25 18:22:30 +01:00
parent 74980dd5dd
commit dfd1d86645

View file

@ -546,6 +546,10 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
}
}
private void setWithoutApply(AssignmentFunction assignmentFunction) {
this.assignmentFunction = assignmentFunction;
}
public int getAssignedHours() {
return DayAssignment.sum(getAssignments());
}
@ -653,7 +657,7 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
}
mergeAssignments(modifications);
setResourcesPerDay(modifications.getResourcesPerDay());
setAssignmentFunction(modifications.getAssignmentFunction());
setWithoutApply(modifications.getAssignmentFunction());
mergeDerivedAllocations(modifications.getDerivedAllocations());
}