When copying a day assignmnet pass the effort duration not the hours

Otherwise some of the duration is lost.

FEA: ItEr62S05BugFixing
This commit is contained in:
Óscar González Fernández 2010-10-14 12:21:49 +02:00
parent f00ba4f3ce
commit d5e4fa5d33
2 changed files with 4 additions and 5 deletions

View file

@ -155,8 +155,8 @@ public class GenericDayAssignment extends DayAssignment {
private static GenericDayAssignment copyFromWithoutParent(
GenericDayAssignment toBeCopied) {
GenericDayAssignment copy = create(toBeCopied.getDay(), toBeCopied
.getHours(), toBeCopied.getResource());
GenericDayAssignment copy = create(toBeCopied.getDay(),
toBeCopied.getDuration(), toBeCopied.getResource());
copy.setConsolidated(toBeCopied.isConsolidated());
return copy;
}

View file

@ -137,9 +137,8 @@ public class SpecificDayAssignment extends DayAssignment {
private static SpecificDayAssignment copyFromWithoutParent(
SpecificDayAssignment assignment) {
SpecificDayAssignment copy = create(assignment.getDay(), assignment
.getHours(), assignment
.getResource());
SpecificDayAssignment copy = create(assignment.getDay(),
assignment.getDuration(), assignment.getResource());
copy.setConsolidated(assignment.isConsolidated());
return copy;
}