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:
Óscar González Fernández 2010-06-22 14:05:24 +02:00
parent 11d9990cc8
commit 70b71aed76

View file

@ -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;
}
}