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:
parent
9bd527c32f
commit
48b4783524
1 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue