Skip to content

Commit

Permalink
Creating a policy with the same name feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Sep 30, 2024
1 parent 0f73619 commit 052ad01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manage-gui/src/pages/Detail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ class Detail extends React.PureComponent {
this.sanitizeMetaData(metaData);
promise(metaData).then(json => {
if (json.exception || json.error) {
setFlash(json.validations, "error");
setFlash(json.validations || json.message, "error");
window.scrollTo(0, 0);
} else {
const name = json.data.name || getNameForLanguage(json.data.metaDataFields) || "this service";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public Map<String, List<Map>> autoCompleteEntities(String type, String query) {
public List<Map> uniqueEntityId(String type, String entityId) {
EntityType entityType = EntityType.fromType(type);
List<Map> results;
if (entityType.equals(EntityType.IDP) || entityType.equals(EntityType.STT)) {
if (entityType.equals(EntityType.IDP) || entityType.equals(EntityType.STT) || entityType.equals(EntityType.PDP)) {
results = metaDataRepository.findByEntityId(entityType.getType(), entityId);
} else if (entityType.equals(EntityType.RS)) {
results = metaDataRepository.findByEntityId(entityType.getType(), entityId);
Expand Down

0 comments on commit 052ad01

Please sign in to comment.