- Timestamp:
- Nov 2, 2009, 3:25:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r175 r178 275 275 } 276 276 taskInstance.properties = params 277 if(!taskInstance.hasErrors() && taskInstance.save( )) {277 if(!taskInstance.hasErrors() && taskInstance.save(flush: true)) { 278 278 flash.message = "Task ${params.id} updated" 279 279 redirect(action:show,id:taskInstance.id) … … 297 297 def save = { 298 298 def taskInstance = new Task(params) 299 if(!taskInstance.hasErrors() && taskInstance.save( )) {299 if(!taskInstance.hasErrors() && taskInstance.save(flush: true)) { 300 300 flash.message = "Task ${taskInstance.id} created" 301 301 redirect(action:show,id:taskInstance.id)
Note: See TracChangeset
for help on using the changeset viewer.