Bug #1513: Lazy exception going to project dashboard

Not all the elements of the CriticalPath were reattached. In the code
there are two ways of retrieving the CriticalPath, one using
orderPlanningController and another one using CriticalPathBuilder. The
latter always works.

FEA: ItEr76S04BugFixing
This commit is contained in:
Diego Pino 2012-07-16 15:18:00 +02:00
parent 608a010994
commit 8b0b11397f

View file

@ -110,11 +110,8 @@ public class DashboardTabCreator {
@Override
protected void afterShowAction() {
List<TaskElement> criticalPath = orderPlanningController.getCriticalPath();
if (criticalPath == null) {
criticalPath = getCriticalPath(mode.getOrder(),
getDesktop());
}
List<TaskElement> criticalPath = getCriticalPath(mode.getOrder(),
getDesktop());
PlanningState planningState = getPlanningState(mode.getOrder(), getDesktop());
Order currentOrder = planningState.getOrder();
dashboardController.setCurrentOrder(planningState,