mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
make sure collections list is unique
(cherry picked from commit d27331a0b3
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
d6f6444f58
commit
1da7c6b933
@@ -159,7 +159,7 @@ public class CollectionDAOImpl extends AbstractHibernateDSODAO<Collection> imple
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Collection> findCollectionsWithSubscribers(Context context) throws SQLException {
|
public List<Collection> findCollectionsWithSubscribers(Context context) throws SQLException {
|
||||||
return list(createQuery(context, "SELECT c FROM Collection c JOIN Subscription s ON c.id = " +
|
return list(createQuery(context, "SELECT DISTINCT c FROM Collection c JOIN Subscription s ON c.id = " +
|
||||||
"s.dSpaceObject"));
|
"s.dSpaceObject"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user