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:
parent
74980dd5dd
commit
dfd1d86645
1 changed files with 5 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue