- Timestamp:
- May 4, 2009, 1:59:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r106 r124 8 8 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 9 9 10 // def list = { 11 // params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 // def taskInstanceActives = Task.findAllByIsActive( true ).list( params ) 13 // // def taskInstanceList = taskInstanceActives.list( params ) 14 // return [ taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceActives.count() ] 15 // } 16 10 17 def list = { 11 18 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 def taskInstanceList = Task.findAllByIsActive( true ) 13 return [ taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceList.count() ] 19 [ taskInstanceList: Task.list( params ), taskInstanceTotal: Task.count() ] 14 20 } 15 21
Note: See TracChangeset
for help on using the changeset viewer.