Skip to content

Commit

Permalink
PageRequestRole: "reloading the page after save" is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jun 20, 2016
1 parent 2cd2a1c commit efedb34
Showing 1 changed file with 5 additions and 8 deletions.
Expand Up @@ -203,18 +203,15 @@ private void onSavePerformed(AjaxRequestTarget target) {
if (backgroundTaskOperationResult != null
&& StringUtils.isNotEmpty(backgroundTaskOperationResult.getBackgroundTaskOid())){
result.setMessage(createStringResource("operation.com.evolveum.midpoint.web.page.self.PageRequestRole.taskCreated").getString());
showResult(result);
setResponsePage(PageRequestRole.class);
return;
}
showResult(result);
if (!WebComponentUtil.isSuccessOrHandledError(result)) {
showResult(result);
target.add(getFeedbackPanel());
} else {
showResult(result);
if (WebComponentUtil.isAuthorized(AuthorizationConstants.AUTZ_UI_DASHBOARD_URL,
AuthorizationConstants.AUTZ_UI_HOME_ALL_URL)) {
setResponsePage(PageDashboard.class);
} else {
setResponsePage(PageSelfDashboard.class);
}
setResponsePage(PageRequestRole.class);
}
}

Expand Down

0 comments on commit efedb34

Please sign in to comment.