Skip to content

Commit

Permalink
add missing params.sort handling for UserActivityController.groovy #814
Browse files Browse the repository at this point in the history
  • Loading branch information
dularion committed May 30, 2019
1 parent 3f8ef54 commit 4615920
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class UserActivityController {

def index(Integer max) {
params.max = Math.min(max ?: 20, 100)
params.sort = 'id'
params.sort = params.sort ?: 'id'
params.order = 'DESC'
params.offset = params.int('offset') ?: 0

Expand Down

0 comments on commit 4615920

Please sign in to comment.