Skip to content

Commit

Permalink
MID-6200 save in background fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Apr 7, 2020
1 parent 03c869e commit ecf5c7f
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -822,7 +822,7 @@ public void saveOrPreviewPerformed(AjaxRequestTarget target, OperationResult res
if (checkValidationErrors(target, validationErrors)) {
return;
}
if (isSaveInBackground()){
if (isSaveInBackground() && !previewOnly){
progressPanel.executeChangesInBackground(deltas, previewOnly, options, task, result, target);
} else {
progressPanel.executeChanges(deltas, previewOnly, options, task, result, target);
Expand Down Expand Up @@ -871,7 +871,7 @@ public void saveOrPreviewPerformed(AjaxRequestTarget target, OperationResult res
if (checkValidationErrors(target, validationErrors)) {
return;
}
if (isSaveInBackground()){
if (isSaveInBackground() && !previewOnly){
progressPanel.executeChangesInBackground(deltas, previewOnly, options, task, result, target);
} else {
progressPanel.executeChanges(deltas, previewOnly, options, task, result, target);
Expand All @@ -881,13 +881,13 @@ public void saveOrPreviewPerformed(AjaxRequestTarget target, OperationResult res
if (checkValidationErrors(target, validationErrors)) {
return;
}
if (isSaveInBackground()){
if (isSaveInBackground() && !previewOnly){
progressPanel.executeChangesInBackground(deltas, previewOnly, options, task, result, target);
} else {
progressPanel.executeChanges(deltas, previewOnly, options, task, result, target);
}
} else if (previewOnly && delta.isEmpty() && delegationChangesExist){
if (isSaveInBackground()){
if (isSaveInBackground() && !previewOnly){
progressPanel.executeChangesInBackground(deltas, previewOnly, options, task, result, target);
} else {
progressPanel.executeChanges(deltas, previewOnly, options, task, result, target);
Expand Down

0 comments on commit ecf5c7f

Please sign in to comment.