mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Fix result limit to work as documented: 0 means no limit, not maximum of no results
This commit is contained in:
@@ -194,7 +194,9 @@ public class DSpaceControlledVocabulary extends SelfNamedPlugin implements Choic
|
||||
if (null != idAttr) // 'id' is optional
|
||||
authorities[i] = idAttr.getNodeValue();
|
||||
}
|
||||
int resultCount = Math.min(labels.length - start, limit);
|
||||
int resultCount = labels.length - start;
|
||||
if ((limit > 0) && (resultCount > limit)) // limit = 0 means no limit
|
||||
resultCount = limit;
|
||||
choices = new Choice[resultCount];
|
||||
if (resultCount > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user