From 8b0b11397f36bc2ed343966f8fe3775bfb7feb0f Mon Sep 17 00:00:00 2001 From: Diego Pino Date: Mon, 16 Jul 2012 15:18:00 +0200 Subject: [PATCH] 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 --- .../libreplan/web/planner/tabs/DashboardTabCreator.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/planner/tabs/DashboardTabCreator.java b/libreplan-webapp/src/main/java/org/libreplan/web/planner/tabs/DashboardTabCreator.java index 25084ad33..0cb2fbe7a 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/planner/tabs/DashboardTabCreator.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/planner/tabs/DashboardTabCreator.java @@ -110,11 +110,8 @@ public class DashboardTabCreator { @Override protected void afterShowAction() { - List criticalPath = orderPlanningController.getCriticalPath(); - if (criticalPath == null) { - criticalPath = getCriticalPath(mode.getOrder(), - getDesktop()); - } + List criticalPath = getCriticalPath(mode.getOrder(), + getDesktop()); PlanningState planningState = getPlanningState(mode.getOrder(), getDesktop()); Order currentOrder = planningState.getOrder(); dashboardController.setCurrentOrder(planningState,