ItEr49S10CUVisualizacionResponsabilidadesTRaballoNaPlanificacionItEr48S10: Loading unsatisfied allocations too at allocation form

This commit is contained in:
Óscar González Fernández 2010-02-23 19:39:58 +01:00
parent 11592da751
commit 8db14ca407
2 changed files with 2 additions and 2 deletions

View file

@ -248,7 +248,7 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
loadResources(this.task.getSatisfiedResourceAllocations());
loadDerivedAllocations(this.task.getSatisfiedResourceAllocations());
List<AllocationRow> initialRows = AllocationRow.toRows(this.task
.getSatisfiedResourceAllocations());
.getAllResourceAllocations());
allocationRowsHandler = AllocationRowsHandler.create(task, initialRows,
createWorkerFinder());
return allocationRowsHandler;

View file

@ -860,7 +860,7 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
private static void forceLoadOfResourceAllocationsResources(
TaskElement taskElement) {
Set<ResourceAllocation<?>> resourceAllocations = taskElement
.getSatisfiedResourceAllocations();
.getAllResourceAllocations();
for (ResourceAllocation<?> each : resourceAllocations) {
each.getAssociatedResources();
for (DerivedAllocation eachDerived : each.getDerivedAllocations()) {