Fix exception when going to the resource load directly
Creating a new planning state must be done inside a transaction. FEA: ItEr75S04BugFixing
This commit is contained in:
parent
99a85fac5c
commit
218dac5219
1 changed files with 13 additions and 2 deletions
|
|
@ -932,8 +932,19 @@ public class ResourceLoadController implements Composer {
|
|||
}
|
||||
|
||||
public void filterBy(Order order) {
|
||||
this.filterBy = order == null ? null : planningStateCreator
|
||||
.retrieveOrCreate(parent.getDesktop(), order);
|
||||
this.filterBy = order == null ? null : createPlanningState(order);
|
||||
}
|
||||
|
||||
PlanningState createPlanningState(final Order order) {
|
||||
return transactionService
|
||||
.runOnReadOnlyTransaction(new IOnTransaction<PlanningState>() {
|
||||
|
||||
@Override
|
||||
public PlanningState execute() {
|
||||
return planningStateCreator.retrieveOrCreate(
|
||||
parent.getDesktop(), order);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void setPlanningControllerEntryPoints(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue