ItEr57S04ValidacionEProbasFuncionaisItEr56S04: Avoid that resources are proxies doing the listing first

This commit is contained in:
Óscar González Fernández 2010-05-03 22:10:32 +02:00
parent c28c1e6310
commit 497a564d4c

View file

@ -889,11 +889,11 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
if (!orderReloaded.isSomeTaskElementScheduled()) {
return PlanningState.createEmpty(currentScenario);
}
final List<Resource> allResources = resourceDAO.list(Resource.class);
criterionDAO.list(Criterion.class);
TaskGroup taskElement = orderReloaded.getAssociatedTaskElement();
forceLoadOfChildren(Arrays.asList(taskElement));
switchAllocationsToScenario(currentScenario, taskElement);
final List<Resource> allResources = resourceDAO.list(Resource.class);
final IScenarioInfo scenarioInfo = buildScenarioInfo(orderReloaded);
PlanningState result = PlanningState.create(taskElement, orderReloaded
.getAssociatedTasks(), allResources, criterionDAO, resourceDAO,