AtlasOfLivingAustralia / collectory

Metadata registry for the Atlas
https://collections.ala.org.au
Other
0 stars 15 forks source link

`providerMap` list page errors when `max` param specified #86

Closed nickdos closed 1 year ago

nickdos commented 2 years ago

https://collections.ala.org.au/providerMap/list gives expected results. However, manually specifying a custom max param throws 500 error: https://collections.ala.org.au/providerMap/list?max=200&order=asc.

Error 500: No signature of method: grails.orm.HibernateCriteriaBuilder.maxResults() is applicable for argument types: (String) values: [200]

at org.grails.orm.hibernate.query.AbstractHibernateCriteriaBuilder.invokeMethod(AbstractHibernateCriteriaBuilder.java:1847)
at au.org.ala.collectory.ProviderMapController$_closure2$_closure9.doCall(ProviderMapController.groovy:32)
nickdos commented 2 years ago

@Rita-C please code review 83c368c, when you have a chance.