ItEr59S04ValidacionEProbasFuncionaisItEr58S04: [Bug #509] Missing copy consolidated attribute in DayAssignment.
This commit is contained in:
parent
657d58d800
commit
ae0a0d7c73
2 changed files with 9 additions and 4 deletions
|
|
@ -148,8 +148,10 @@ public class GenericDayAssignment extends DayAssignment {
|
|||
|
||||
private static GenericDayAssignment copyFromWithoutParent(
|
||||
GenericDayAssignment toBeCopied) {
|
||||
return create(toBeCopied.getDay(), toBeCopied
|
||||
.getHours(), toBeCopied.getResource());
|
||||
GenericDayAssignment copy = create(toBeCopied.getDay(), toBeCopied
|
||||
.getHours(), toBeCopied.getResource());
|
||||
copy.setConsolidated(toBeCopied.isConsolidated());
|
||||
return copy;
|
||||
}
|
||||
|
||||
public static List<GenericDayAssignment> copyToAssignmentsWithoutParent(
|
||||
|
|
|
|||
|
|
@ -134,8 +134,11 @@ public class SpecificDayAssignment extends DayAssignment {
|
|||
|
||||
private static SpecificDayAssignment copyFromWithoutParent(
|
||||
SpecificDayAssignment assignment) {
|
||||
return create(assignment.getDay(), assignment.getHours(), assignment
|
||||
.getResource());
|
||||
SpecificDayAssignment copy = create(assignment.getDay(), assignment
|
||||
.getHours(), assignment
|
||||
.getResource());
|
||||
copy.setConsolidated(assignment.isConsolidated());
|
||||
return copy;
|
||||
}
|
||||
|
||||
public static List<SpecificDayAssignment> copyToAssignmentsWithoutParent(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue