Skip to content

Commit

Permalink
rename group
Browse files Browse the repository at this point in the history
  • Loading branch information
wangf1122 committed Apr 30, 2024
1 parent 7c056cf commit 9ca02c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/src/main/java/org/fao/geonet/api/pages/PagesAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ private ResponseEntity<String> createPage(PageProperties pageProperties,
newPage.setStatus(status);

if (status == Page.PageStatus.GROUPS && CollectionUtils.isNotEmpty(groups)) {
Set<Group> _groups = new LinkedHashSet<>();
Set<Group> pageGroups = new LinkedHashSet<>();
for (String groupName : groups) {
Group group = groupRepository.findByName(groupName);
_groups.add(group);
pageGroups.add(group);
}
newPage.setGroups(_groups);
newPage.setGroups(pageGroups);
}
}

Expand Down

0 comments on commit 9ca02c8

Please sign in to comment.