Skip to content

Commit 4615920

Browse files
author
dularion
committed
add missing params.sort handling for UserActivityController.groovy #814
1 parent 3f8ef54 commit 4615920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-app/controllers/streama/UserActivityController.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class UserActivityController {
1010

1111
def index(Integer max) {
1212
params.max = Math.min(max ?: 20, 100)
13-
params.sort = 'id'
13+
params.sort = params.sort ?: 'id'
1414
params.order = 'DESC'
1515
params.offset = params.int('offset') ?: 0
1616

0 commit comments

Comments
 (0)