From 9ca02c8784176e0f1c437b4a57ed109f2c0bf27d Mon Sep 17 00:00:00 2001 From: WANGF Date: Tue, 30 Apr 2024 09:14:10 -0400 Subject: [PATCH] rename group --- .../src/main/java/org/fao/geonet/api/pages/PagesAPI.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/src/main/java/org/fao/geonet/api/pages/PagesAPI.java b/services/src/main/java/org/fao/geonet/api/pages/PagesAPI.java index 37794bab76a..14da2d9e93c 100644 --- a/services/src/main/java/org/fao/geonet/api/pages/PagesAPI.java +++ b/services/src/main/java/org/fao/geonet/api/pages/PagesAPI.java @@ -199,12 +199,12 @@ private ResponseEntity createPage(PageProperties pageProperties, newPage.setStatus(status); if (status == Page.PageStatus.GROUPS && CollectionUtils.isNotEmpty(groups)) { - Set _groups = new LinkedHashSet<>(); + Set pageGroups = new LinkedHashSet<>(); for (String groupName : groups) { Group group = groupRepository.findByName(groupName); - _groups.add(group); + pageGroups.add(group); } - newPage.setGroups(_groups); + newPage.setGroups(pageGroups); } }