Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jan 19, 2022
2 parents 021fed6 + 15db665 commit 7a82a09
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2831,7 +2831,18 @@ public static <AR extends AbstractRoleType> IModel<String> createAbstractRoleCon
}
String members = atLeastOneWithMembers ? ".members" : "";
ObjectTypes objectType = ObjectTypes.getObjectType(abstractRoleTable.getType());
String propertyKeyPrefix = ObjectTypes.SERVICE.equals(objectType) ? "pageServices" : "pageRoles";
String propertyKeyPrefix = "";
switch (objectType) {
case SERVICE:
propertyKeyPrefix = "pageServices";
break;
case ROLE:
propertyKeyPrefix = "pageRoles";
break;
case ORG:
propertyKeyPrefix = "pageOrgs";
break;
}

if (action.getRowModel() == null) {
return pageBase.createStringResource(propertyKeyPrefix + ".message.confirmationMessageForMultipleObject" + members,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ protected ResponseEntity<?> handleException(OperationResult result, Throwable t)
}

protected ResponseEntity<?> handleExceptionNoLog(OperationResult result, Throwable t) {
if (result.isEmpty()) {
result.recordFatalError("Unknown exception occurred", t);
} else {
result.computeStatus();
}

return createErrorResponseBuilder(result, t);
}

Expand Down

0 comments on commit 7a82a09

Please sign in to comment.