mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Fix collections.all paging bug
This commit is contained in:
@@ -78,7 +78,7 @@ public class CollectionsResource {
|
||||
org.dspace.content.Collection[] collections;
|
||||
|
||||
//Only support paging if limit/offset are 0 or positive values.
|
||||
if(limit != null && limit >= 0 && offset != null && offset != 0) {
|
||||
if(limit != null && limit >= 0 && offset != null && offset >= 0) {
|
||||
collections = org.dspace.content.Collection.findAll(context, limit, offset);
|
||||
} else {
|
||||
collections = org.dspace.content.Collection.findAll(context);
|
||||
|
Reference in New Issue
Block a user