Prevent getHoursAdvanceEndDate() to call calculateLimitDate(Integer) for TaskGroups.

That call made the system load all the DayAssignments for children tasks.

FEA: ItEr61S03RFPerformanceCompanyView
This commit is contained in:
Jacobo Aragunde Pérez 2010-10-06 17:53:52 +02:00
parent 6c61f36d28
commit 0e3788975f

View file

@ -307,7 +307,10 @@ public class TaskElementAdapter implements ITaskElementAdapter {
.getTotalChargedHours();
}
LocalDate date = calculateLimitDate(assignedHours);
LocalDate date = null;
if(!(taskElement instanceof TaskGroup)) {
date = calculateLimitDate(assignedHours);
}
if (date == null) {
Integer hours = 0;
if (orderElement != null) {