Skip to content

Commit

Permalink
redirect back after work item action
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jul 17, 2019
1 parent 8345d6f commit 8235738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -3991,7 +3991,6 @@ public static void workItemApproveActionPerformed(AjaxRequestTarget target, Case
}
}
pageBase.processResult(target, result, false);
// pageBase.redirectBack();
}

public static void assumePowerOfAttorneyIfRequested(OperationResult result, PrismObject<UserType> powerDonor, PageBase pageBase) {
Expand Down
Expand Up @@ -85,6 +85,8 @@ private void initLayout(){
public void onClick(AjaxRequestTarget ajaxRequestTarget) {
WebComponentUtil.workItemApproveActionPerformed(ajaxRequestTarget, getCaseWorkItemModelObject(), getWorkItemOutput(true),
getCustomForm(), getPowerDonor(), true, OPERATION_COMPLETE_WORK_ITEM, getPageBase());
CaseWorkItemActionsPanel.this.getPageBase().redirectBack();

}
};
workItemApproveButton.setOutputMarkupId(true);
Expand All @@ -97,6 +99,7 @@ public void onClick(AjaxRequestTarget ajaxRequestTarget) {
public void onClick(AjaxRequestTarget ajaxRequestTarget) {
WebComponentUtil.workItemApproveActionPerformed(ajaxRequestTarget, getCaseWorkItemModelObject(), getWorkItemOutput(false),
getCustomForm(), getPowerDonor(), false, OPERATION_COMPLETE_WORK_ITEM, getPageBase());
CaseWorkItemActionsPanel.this.getPageBase().redirectBack();
}
};
workItemRejectButton.setOutputMarkupId(true);
Expand Down

0 comments on commit 8235738

Please sign in to comment.