- Timestamp:
- Apr 7, 2009, 12:21:23 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r96 r106 10 10 def list = { 11 11 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 [ taskInstanceList: Task.list( params ), taskInstanceTotal: Task.count() ] 12 def taskInstanceList = Task.findAllByIsActive( true ) 13 return [ taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceList.count() ] 13 14 } 14 15 … … 27 28 if(taskInstance) { 28 29 try { 29 taskInstance. delete()30 flash.message = "Task ${params.id} deleted"30 taskInstance.isActive = false 31 flash.message = "Task ${params.id} has been set to inactive." 31 32 redirect(action:list) 32 33 }
Note: See TracChangeset
for help on using the changeset viewer.