[Bug #923] control if the save command is initialized.
if user has read-only permission over some project is not necessary configure the save command. FEA : ItEr72S04BugFixing
This commit is contained in:
parent
475f5c7c0f
commit
4054e17e9c
1 changed files with 15 additions and 13 deletions
|
|
@ -522,19 +522,21 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
|
|||
private void setupOverallProgress(final ISaveCommand saveCommand) {
|
||||
|
||||
// Refresh progress chart after saving
|
||||
saveCommand.addListener(new IAfterSaveListener() {
|
||||
@Override
|
||||
public void onAfterSave() {
|
||||
transactionService.runOnTransaction(new IOnTransaction<Void>() {
|
||||
@Override
|
||||
public Void execute() {
|
||||
overallProgressContent.refresh();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
if (saveCommand != null) {
|
||||
saveCommand.addListener(new IAfterSaveListener() {
|
||||
@Override
|
||||
public void onAfterSave() {
|
||||
transactionService
|
||||
.runOnTransaction(new IOnTransaction<Void>() {
|
||||
@Override
|
||||
public Void execute() {
|
||||
overallProgressContent.refresh();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void addPrintSupport(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue