Only use ConfirmCloseUtil when saving if you are in the UI (not from web services)
FEA: ItEr77S04BugFixing
This commit is contained in:
parent
c59a89e24e
commit
857ff0c533
1 changed files with 2 additions and 2 deletions
|
|
@ -365,9 +365,9 @@ public class SaveCommandBuilder {
|
|||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
// Reset timer of warning on leaving page
|
||||
ConfirmCloseUtil.resetConfirmClose();
|
||||
if (Executions.getCurrent() != null) {
|
||||
// Reset timer of warning on leaving page
|
||||
ConfirmCloseUtil.resetConfirmClose();
|
||||
if (SecurityUtils.loggedUserCanWrite(state.getOrder())) {
|
||||
ConfirmCloseUtil
|
||||
.setConfirmClose(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue