ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #497] Fix bug.
When calling ResourceAllocation#mergeAssignmentsAndResourcesPerDay(Scenario, ResourceAllocation<?>) switchToScenario is called. This was causing for the specific allocations an unnecessary copy of the assignments. This caused this newly created assignments to be associated to the resource, generating other load in the chart.
This commit is contained in:
parent
11d9990cc8
commit
70b71aed76
1 changed files with 1 additions and 3 deletions
|
|
@ -302,10 +302,8 @@ public class SpecificResourceAllocation extends
|
|||
|
||||
@Override
|
||||
protected DayAssignmentsState switchTo(Scenario scenario) {
|
||||
ExplicitlySpecifiedScenarioState result = new ExplicitlySpecifiedScenarioState(
|
||||
return new ExplicitlySpecifiedScenarioState(
|
||||
scenario);
|
||||
result.resetTo(container.getDayAssignments());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue