Changeset 260 for trunk/grails-app/services
- Timestamp:
- Jan 12, 2010, 1:09:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/TaskSearchService.groovy
r252 r260 6 6 def authenticateService 7 7 8 def paramsMax = 99999 9 8 10 def getTodays(params) { 9 params.max = Math.min(params?.max?.toInteger() ?: 10, 100)11 params.max = Math.min(params?.max?.toInteger() ?: 10, paramsMax) 10 12 params.offset = params?.offset?.toInteger() ?: 0 11 13 params.sort = params?.sort ?: "id" … … 24 26 25 27 def getMyTodays(params) { 26 params.max = Math.min(params?.max?.toInteger() ?: 10, 100)28 params.max = Math.min(params?.max?.toInteger() ?: 10, paramsMax) 27 29 params.offset = params?.offset?.toInteger() ?: 0 28 30 params.sort = params?.sort ?: "id" … … 42 44 43 45 def getInTheLastWeek(params) { 44 params.max = Math.min(params?.max?.toInteger() ?: 10, 100)46 params.max = Math.min(params?.max?.toInteger() ?: 10, paramsMax) 45 47 params.offset = params?.offset?.toInteger() ?: 0 46 48 params.sort = params?.sort ?: "id" … … 59 61 60 62 def getMyInTheLastWeek(params) { 61 params.max = Math.min(params?.max?.toInteger() ?: 10, 100)63 params.max = Math.min(params?.max?.toInteger() ?: 10, paramsMax) 62 64 params.offset = params?.offset?.toInteger() ?: 0 63 65 params.sort = params?.sort ?: "id" … … 77 79 78 80 def getBudgetPlanned(params) { 79 params.max = Math.min(params?.max?.toInteger() ?: 10, 100)81 params.max = Math.min(params?.max?.toInteger() ?: 10, paramsMax) 80 82 params.offset = params?.offset?.toInteger() ?: 0 81 83 params.sort = params?.sort ?: "id" … … 95 97 96 98 def getBudgetUnplanned(params) { 97 params.max = Math.min(params?.max?.toInteger() ?: 10, 100)99 params.max = Math.min(params?.max?.toInteger() ?: 10, paramsMax) 98 100 params.offset = params?.offset?.toInteger() ?: 0 99 101 params.sort = params?.sort ?: "id"
Note: See TracChangeset
for help on using the changeset viewer.