ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #529] Fix bug by reverting commit that introduced it.

Revert " ItEr59S04ValidacionEProbasFuncionaisItEr58S04: [Bug #497] It
also needed to reload the resources that are gotten from the day
assignments."

This reverts commit 401ac50fd9.
This commit is contained in:
Óscar González Fernández 2010-06-22 10:08:22 +02:00
parent 2a8bb34702
commit 60e4f47fa1

View file

@ -1176,19 +1176,6 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
List<DayAssignment> orderDayAssignments = order.getDayAssignments();
SortedMap<LocalDate, Map<Resource, Integer>> orderDayAssignmentsGrouped = groupDayAssignmentsByDayAndResource(orderDayAssignments);
SortedMap<LocalDate, Map<Resource, Integer>> orderDayAssignmentsGroupedReloaded = new TreeMap<LocalDate, Map<Resource,Integer>>();
for (LocalDate day : orderDayAssignmentsGrouped.keySet()) {
Map<Resource, Integer> map = new HashMap<Resource, Integer>();
for (Resource resource : orderDayAssignmentsGrouped.get(day)
.keySet()) {
Resource resourceReloaded = reloadResources(
Arrays.asList(resource)).get(0);
map.put(resourceReloaded, orderDayAssignmentsGrouped.get(
day).get(resource));
}
orderDayAssignmentsGroupedReloaded.put(day, map);
}
orderDayAssignmentsGrouped = orderDayAssignmentsGroupedReloaded;
List<DayAssignment> resourcesDayAssignments = new ArrayList<DayAssignment>();
for (Resource resource : reloadResources(order.getResources())) {