Test if it's the same day doesn't make sense
FEA: ItEr62S05BugFixing
This commit is contained in:
parent
d1f79e1acf
commit
73a3f2cfaf
1 changed files with 2 additions and 3 deletions
|
|
@ -268,15 +268,14 @@ public abstract class TaskElement extends BaseEntity {
|
|||
if (newStartDate == null) {
|
||||
return;
|
||||
}
|
||||
final boolean sameDay = this.startDate.areSameDay(newStartDate
|
||||
.getDate());
|
||||
IntraDayDate previousStart = this.startDate;
|
||||
long durationMilliseconds = getLengthMilliseconds();
|
||||
setIntraDayStartDate(newStartDate);
|
||||
DateTime newEnd = this.startDate.toDateTimeAtStartOfDay().plus(
|
||||
durationMilliseconds);
|
||||
this.endDate = IntraDayDate.create(newEnd.toLocalDate(),
|
||||
EffortDuration.zero());
|
||||
if (!sameDay) {
|
||||
if (!previousStart.equals(newStartDate)) {
|
||||
moveAllocations(scenario);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue