mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
Bugfix indirect relationship discovery updates
This commit is contained in:
@@ -421,12 +421,12 @@ public class RelationshipServiceImpl implements RelationshipService {
|
||||
for (Relationship foundRelationship : list) {
|
||||
if (isLeft) {
|
||||
itemsToUpdate.add(foundRelationship.getRightItem());
|
||||
return getRelatedItemsForRightItem(context, foundRelationship.getRightItem(), foundRelationship,
|
||||
itemsToUpdate, max);
|
||||
itemsToUpdate.addAll(getRelatedItemsForRightItem(context, foundRelationship.getRightItem(),
|
||||
foundRelationship, itemsToUpdate, max));
|
||||
} else {
|
||||
itemsToUpdate.add(foundRelationship.getLeftItem());
|
||||
return getRelatedItemsForLeftItem(context, foundRelationship.getLeftItem(), foundRelationship,
|
||||
itemsToUpdate, max);
|
||||
itemsToUpdate.addAll(getRelatedItemsForLeftItem(context, foundRelationship.getLeftItem(),
|
||||
foundRelationship, itemsToUpdate, max));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -458,12 +458,12 @@ public class RelationshipServiceImpl implements RelationshipService {
|
||||
for (Relationship foundRelationship : list) {
|
||||
if (isLeft) {
|
||||
itemsToUpdate.add(foundRelationship.getRightItem());
|
||||
return getRelatedItemsForRightItem(context, foundRelationship.getRightItem(), foundRelationship,
|
||||
itemsToUpdate, max);
|
||||
itemsToUpdate.addAll(getRelatedItemsForRightItem(context, foundRelationship.getRightItem(),
|
||||
foundRelationship, itemsToUpdate, max));
|
||||
} else {
|
||||
itemsToUpdate.add(foundRelationship.getLeftItem());
|
||||
return getRelatedItemsForLeftItem(context, foundRelationship.getLeftItem(), foundRelationship,
|
||||
itemsToUpdate, max);
|
||||
itemsToUpdate.addAll(getRelatedItemsForLeftItem(context, foundRelationship.getLeftItem(),
|
||||
foundRelationship, itemsToUpdate, max));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user