- Timestamp:
- Nov 2, 2009, 3:25:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/EntryDetailedController.groovy
r147 r178 68 68 if(entryInstance) { 69 69 entryInstance.properties = params 70 if(!entryInstance.hasErrors() && entryInstance.save( )) {70 if(!entryInstance.hasErrors() && entryInstance.save(flush: true)) { 71 71 flash.message = "Entry ${params.id} updated" 72 72 redirect(action:show,id:entryInstance.id) … … 99 99 100 100 entryInstance.enteredBy = Person.get(authenticateService.userDomain().id) 101 if(!entryInstance.hasErrors() && entryInstance.save( )) {101 if(!entryInstance.hasErrors() && entryInstance.save(flush: true)) { 102 102 flash.message = "Entry ${entryInstance.id} created" 103 103 redirect(controller:"taskDetailed", action:"show", id: params.task.id)
Note: See TracChangeset
for help on using the changeset viewer.