mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 20:43:18 +00:00
[DS-2913] Fix community parent logging infinite loop
This commit is contained in:
@@ -568,12 +568,9 @@ public class SolrLoggerServiceImpl implements SolrLoggerService, InitializingBea
|
|||||||
{
|
{
|
||||||
Community comm = (Community) dso;
|
Community comm = (Community) dso;
|
||||||
List<Community> parentCommunities = comm.getParentCommunities();
|
List<Community> parentCommunities = comm.getParentCommunities();
|
||||||
while (CollectionUtils.isNotEmpty(parentCommunities))
|
for (Community parent : parentCommunities) {
|
||||||
{
|
doc1.addField("owningComm", parent.getID());
|
||||||
for (int i = 0; i < parentCommunities.size(); i++) {
|
storeParents(doc1, parent);
|
||||||
Community community = parentCommunities.get(i);
|
|
||||||
doc1.addField("owningComm", comm.getID());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (dso instanceof Collection)
|
else if (dso instanceof Collection)
|
||||||
|
Reference in New Issue
Block a user