ItEr46S04ValidacionEProbasFuncionaisItEr45S04: Fixing problem loading a scheduling with a milestone.
Working hours are only loaded if task source exists, e.g. it's not a milestone.
This commit is contained in:
parent
889027d2ea
commit
a3ccebfbc3
1 changed files with 9 additions and 7 deletions
|
|
@ -809,13 +809,15 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
|
|||
|
||||
private void forceLoadOfWorkingHours(List<TaskElement> initial) {
|
||||
for (TaskElement taskElement : initial) {
|
||||
taskElement.getTaskSource().getTotalHours();
|
||||
OrderElement orderElement = taskElement.getOrderElement();
|
||||
if (orderElement != null) {
|
||||
orderElement.getWorkHours();
|
||||
}
|
||||
if (!taskElement.isLeaf()) {
|
||||
forceLoadOfWorkingHours(taskElement.getChildren());
|
||||
if (taskElement.getTaskSource() != null) {
|
||||
taskElement.getTaskSource().getTotalHours();
|
||||
OrderElement orderElement = taskElement.getOrderElement();
|
||||
if (orderElement != null) {
|
||||
orderElement.getWorkHours();
|
||||
}
|
||||
if (!taskElement.isLeaf()) {
|
||||
forceLoadOfWorkingHours(taskElement.getChildren());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue