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")
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);