Bugfix indirect relationship discovery updates

This commit is contained in:
Ben Bosman
2020-12-16 14:36:28 +01:00
parent 9895049a99
commit e3b15bfa92

View File

@@ -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));
}
}
}