jdaugherty commented on code in PR #15557:
URL: https://github.com/apache/grails-core/pull/15557#discussion_r3341567619


##########
grails-rest-transforms/src/main/groovy/grails/rest/RestfulController.groovy:
##########
@@ -66,8 +66,7 @@ class RestfulController<T> {
      * @return A list of resources
      */
     def index(Integer max) {
-        if (max < 0) { max = null }
-        params.max = Math.min(max ?: 10, 100)
+        params.max = Math.min(params.int('max', 10), 100)

Review Comment:
   This is a behavior change.  Why are you making this change? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to