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:
parent
ddc32cea1d
commit
d76e3d36d7
1 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue