[Bug #750] Fix bug

The problem was that a milestone can be a top level task and doesn't
have an associated order element. If the parent of the top level task
is retrieved, the taskgroup associated to the order is returned and
from this taskgroup the order can always be obtained.

FEA: ItEr65S06BugFixing
This commit is contained in:
Óscar González Fernández 2010-12-14 13:00:41 +01:00
parent 70fd6abddc
commit 5c8bc94c47

View file

@ -249,7 +249,7 @@ public class TaskPropertiesController extends GenericForwardComposer {
private Order findOrderIn(IContextWithPlannerTask<TaskElement> context) {
TaskElement topTask = context.getMapper().findAssociatedDomainObject(
findTopMostTask(context));
return topTask.getOrderElement().getOrder();
return topTask.getParent().getOrderElement().getOrder();
}
private org.zkoss.ganttz.data.Task findTopMostTask(