Changeset 262 for trunk/grails-app/controllers
- Timestamp:
- Jan 12, 2010, 2:33:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r260 r262 23 23 24 24 def setTaskSearchParamsMax = { 25 if(params.newMax.isInteger()) 25 def max = 1000 26 if(params.newMax.isInteger()) { 26 27 def i = params.newMax.toInteger() 27 if(params.newMax.toInteger() > 0) 28 session.taskSearchParamsMax = params.newMax 29 params.max = params.newMax 28 if(i > 0 && i <= max) 29 session.taskSearchParamsMax = params.newMax 30 if(i > max) 31 session.taskSearchParamsMax = max 32 } 30 33 forward(action: 'search', params: params) 31 34 } … … 37 40 38 41 // TaskSearchService protects itself but filterPane does not. 39 params.max = Math.min( params.max ? params.max.toInteger() : 10, 99999)42 params.max = Math.min( params.max ? params.max.toInteger() : 10, 1000 ) 40 43 41 44 def taskInstanceList = []
Note: See TracChangeset
for help on using the changeset viewer.