Fixed bug on count item
This commit is contained in:
parent
ae863a7aea
commit
67006b8f67
|
@ -235,7 +235,7 @@ public class Item extends REST<CKANPackage> implements org.gcube.gcat.api.interf
|
|||
Boolean countOnly = false;
|
||||
MultivaluedMap<String,String> queryParameters = uriInfo.getQueryParameters();
|
||||
if(queryParameters.containsKey(GCatConstants.COUNT_QUERY_PARAMETER)) {
|
||||
countOnly = Boolean.parseBoolean(queryParameters.get(GCatConstants.ALL_FIELDS_QUERY_PARAMETER).get(0));
|
||||
countOnly = Boolean.parseBoolean(queryParameters.get(GCatConstants.COUNT_QUERY_PARAMETER).get(0));
|
||||
}
|
||||
|
||||
if(countOnly) {
|
||||
|
|
Loading…
Reference in New Issue