Update tasks in Gantt after adapting start and end date of all tasks

First all tasks are proccesed and the start and end date adapted accordingly.
Then all the tasks updated from timesheets are updated in the Gantt view.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
This commit is contained in:
Manuel Rego Casasnovas 2012-11-13 10:53:00 +01:00
parent 9bd527c32f
commit 48b4783524

View file

@ -22,7 +22,6 @@ import static org.libreplan.web.I18nHelper._;
import java.util.Date;
import java.util.List;
import java.util.Set;
import org.joda.time.LocalDate;
import org.libreplan.business.advance.bootstrap.PredefinedAdvancedTypes;
@ -85,9 +84,14 @@ public class AdaptPlanningCommand implements IAdaptPlanningCommand {
}
taskElement.setUpdatedFromTimesheets(true);
}
}
for (TaskElement taskElement : taskElements) {
if (taskElement.isUpdatedFromTimesheets()) {
updateTask(context, taskElement);
}
}
context.reloadCharts();
}