ItEr41S16ImplantacionAplicacionItEr40S21: [Bug #222] Fixing bug. Checking resource's calendar is not null.
This commit is contained in:
parent
5b70a4eda0
commit
6f1d1ebb04
1 changed files with 3 additions and 1 deletions
|
|
@ -317,7 +317,9 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
|
|||
private void reattachResource(Resource resource) {
|
||||
resourceDAO.reattach(resource);
|
||||
reattachCriterionSatisfactions(resource.getCriterionSatisfactions());
|
||||
calendarDAO.reattachUnmodifiedEntity(resource.getCalendar());
|
||||
if (resource.getCalendar() != null) {
|
||||
calendarDAO.reattachUnmodifiedEntity(resource.getCalendar());
|
||||
}
|
||||
for (DayAssignment dayAssignment : resource.getAssignments()) {
|
||||
Hibernate.initialize(dayAssignment);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue