mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 18:44:22 +00:00

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
275b0f89b7
commit
b8f638b3b6
@@ -64,7 +64,7 @@ public class EntityServiceImpl implements EntityService {
|
||||
List<Relationship> fullList = entity.getRelationships();
|
||||
List<Relationship> listToReturn = new LinkedList<>();
|
||||
for (Relationship relationship : fullList) {
|
||||
if (relationship.getLeftItem().getID() == entity.getItem().getID()) {
|
||||
if (relationship.getLeftItem().getID().equals(entity.getItem().getID())) {
|
||||
listToReturn.add(relationship);
|
||||
}
|
||||
}
|
||||
@@ -76,7 +76,7 @@ public class EntityServiceImpl implements EntityService {
|
||||
List<Relationship> fullList = entity.getRelationships();
|
||||
List<Relationship> listToReturn = new LinkedList<>();
|
||||
for (Relationship relationship : fullList) {
|
||||
if (relationship.getRightItem().getID() == entity.getItem().getID()) {
|
||||
if (relationship.getRightItem().getID().equals(entity.getItem().getID())) {
|
||||
listToReturn.add(relationship);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user