From d76e3d36d7e75131d9d51100ee505641cbe5a07a Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Tue, 20 Nov 2012 12:13:45 +0100 Subject: [PATCH] Bug #1568: Allow to move a task before start date if it does not have consolidations When you set the days for a task, even if it does not have consolidations, the method does not allow you to move it before the start date. This restriction has been removed. FEA: ItEr77S04BugFixing --- .../org/libreplan/web/planner/allocation/FormBinder.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/planner/allocation/FormBinder.java b/libreplan-webapp/src/main/java/org/libreplan/web/planner/allocation/FormBinder.java index cf9e0692d..54d104fd9 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/planner/allocation/FormBinder.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/planner/allocation/FormBinder.java @@ -351,8 +351,11 @@ public class FormBinder { @SuppressWarnings("unchecked") private IntraDayDate ensureItIsAfterConsolidation( IntraDayDate newDate) { - return Collections.max(Arrays.asList(newDate, - IntraDayDate.startOfDay(firstPossibleDay))); + if (getTask().hasConsolidations()) { + return Collections.max(Arrays.asList(newDate, + IntraDayDate.startOfDay(firstPossibleDay))); + } + return newDate; } }, onChangeEnableApply);