[Bug #1242] Don't allow progress end dates superior to the corresponding task end date.
This situation still happened in tasks with completition near to 100% (for example 99%) and the 'by hours' calculation method. FEA: ItEr75S04BugFixing
This commit is contained in:
parent
519389dc4b
commit
bf4e13c358
1 changed files with 7 additions and 0 deletions
|
|
@ -660,6 +660,13 @@ public class TaskElementAdapter {
|
|||
GanttDate result = calculateLimitDateByHours(advanceHours);
|
||||
if (result == null) {
|
||||
result = calculateLimitDateByPercentage(advancePercentage);
|
||||
|
||||
} else {
|
||||
GanttDate endDate = toGantt(taskElement.getIntraDayEndDate());
|
||||
if (result.compareTo(endDate) > 0) {
|
||||
//don't allow progress bars wider than the task itself
|
||||
result = endDate;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue