ItEr44S11CUImportarTraballoRealizadoPorSubcontrataItEr43S14: Fixed lazy initialization exception editing an order because of customer external company was not loaded before.
This commit is contained in:
parent
0a3e9dca29
commit
3ec83b01e8
1 changed files with 7 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue