Skip to content

Commit

Permalink
MID-7520 missing org list translation, fix in translation key builder
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jan 18, 2022
1 parent d9fe24e commit b5ebc52
Showing 1 changed file with 12 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

0 comments on commit b5ebc52

Please sign in to comment.