ItEr44S11CUImportarTraballoRealizadoPorSubcontrataItEr43S14: Fixed lazy initialization exception editing an order because of customer external company was not loaded before.

This commit is contained in:
Manuel Rego Casasnovas 2010-01-22 08:16:32 +01:00 committed by Javier Moran Rua
parent 0a3e9dca29
commit 3ec83b01e8

View file

@ -222,6 +222,13 @@ public class OrderModel implements IOrderModel {
forceLoadAdvanceAssignmentsAndMeasurements(this.order);
forceLoadCriterionRequirements(this.order);
forceLoadCalendar(this.getCalendar());
forceLoadCustomer(this.order.getCustomer());
}
private void forceLoadCustomer(ExternalCompany customer) {
if (customer != null) {
customer.getName();
}
}
private void loadNeededDataForConversation() {