ItEr47S04ValidacionEProbasFuncionaisItEr46S04: [Bug #292] Fixing bug.
TaskGroup was returning wrong values for restrictions and canBeResized. This interfered on the update process.
This commit is contained in:
parent
e22ca7c4fa
commit
0f34be9d13
2 changed files with 2 additions and 6 deletions
|
|
@ -140,6 +140,6 @@ public class TaskGroup extends TaskElement {
|
|||
|
||||
@Override
|
||||
protected boolean canBeResized() {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ import org.navalplanner.business.planner.entities.SpecificResourceAllocation;
|
|||
import org.navalplanner.business.planner.entities.StartConstraintType;
|
||||
import org.navalplanner.business.planner.entities.Task;
|
||||
import org.navalplanner.business.planner.entities.TaskElement;
|
||||
import org.navalplanner.business.planner.entities.TaskMilestone;
|
||||
import org.navalplanner.business.planner.entities.TaskStartConstraint;
|
||||
import org.navalplanner.business.planner.entities.Dependency.Type;
|
||||
import org.navalplanner.business.resources.daos.ICriterionDAO;
|
||||
|
|
@ -509,13 +508,10 @@ public class TaskElementAdapter implements ITaskElementAdapter {
|
|||
default:
|
||||
throw new RuntimeException("can't handle " + constraintType);
|
||||
}
|
||||
} else if (taskElement instanceof TaskMilestone) {
|
||||
} else {
|
||||
return Collections.singletonList(DateConstraint
|
||||
.biggerOrEqualThan(taskElement.getStartDate()));
|
||||
} else {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue