[Bug #1208] Fix problem with imputed hours in project view

The problem was related with the usage of the wrong function. It was
caused because of there're 2 functions with the same name, but doing
different things depending on the type of argument.

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-10-07 15:24:42 +02:00
parent 47c9140daa
commit 619bc51047

View file

@ -510,7 +510,7 @@ public class TaskElementAdapter {
GanttDate result = null;
if (!(taskElement instanceof TaskGroup)) {
result = calculateLimitDate(assignedEffort
.toHoursAsDecimalWithScale(2));
.toHoursAsDecimalWithScale(2).intValue());
}
if (result == null) {
Integer hours = taskElement.getSumOfHoursAllocated();