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
This commit is contained in:
Manuel Rego Casasnovas 2012-11-20 12:13:45 +01:00
parent ddc32cea1d
commit d76e3d36d7

View file

@ -351,8 +351,11 @@ public class FormBinder {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private IntraDayDate ensureItIsAfterConsolidation( private IntraDayDate ensureItIsAfterConsolidation(
IntraDayDate newDate) { IntraDayDate newDate) {
return Collections.max(Arrays.asList(newDate, if (getTask().hasConsolidations()) {
IntraDayDate.startOfDay(firstPossibleDay))); return Collections.max(Arrays.asList(newDate,
IntraDayDate.startOfDay(firstPossibleDay)));
}
return newDate;
} }
}, onChangeEnableApply); }, onChangeEnableApply);