ItEr27S06CUAsignacionGrupoRecursosAPlanificacionItEr26S07: When reattaching a resource the calendar is also loaded

This commit is contained in:
Óscar González Fernández 2009-09-23 13:28:18 +02:00
parent fbd727da2f
commit 53afd6e865

View file

@ -5,6 +5,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.joda.time.LocalDate;
import org.navalplanner.business.orders.daos.IHoursGroupDAO;
import org.navalplanner.business.orders.entities.HoursGroup;
import org.navalplanner.business.planner.daos.IResourceAllocationDAO;
@ -178,6 +179,9 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
resourceDAO.save(resource);
reattachCriterionSatisfactions(resource.getCriterionSatisfactions());
resource.getAssignments();
if (resource.getCalendar() != null) {
resource.getCalendar().getWorkableHours(new LocalDate());
}
}
private void reattachCriterionSatisfactions(