ItEr46S07ImplantacionAplicacionItEr45S07: Fixed lazy exception related with labels when editing an order.

This commit is contained in:
Manuel Rego Casasnovas 2010-02-04 13:07:28 +01:00 committed by Javier Moran Rua
parent e14473a168
commit 269c4b5f12

View file

@ -253,6 +253,14 @@ public class OrderModel implements IOrderModel {
forceLoadCriterionRequirements(this.order);
forceLoadCalendar(this.getCalendar());
forceLoadCustomer(this.order.getCustomer());
forceLoadLabels(this.order);
}
private void forceLoadLabels(OrderElement orderElement) {
orderElement.getLabels().size();
for (OrderElement each : orderElement.getChildren()) {
forceLoadLabels(each);
}
}
private void forceLoadCustomer(ExternalCompany customer) {