- Timestamp:
- Nov 2, 2009, 3:25:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetDetailedController.groovy
r161 r178 93 93 } 94 94 assetInstance.properties = params 95 if(!assetInstance.hasErrors() && assetInstance.save( )) {95 if(!assetInstance.hasErrors() && assetInstance.save(flush: true)) { 96 96 flash.message = "Asset ${params.id} updated" 97 97 redirect(action:show,id:assetInstance.id) … … 115 115 def save = { 116 116 def assetInstance = new Asset(params) 117 if(!assetInstance.hasErrors() && assetInstance.save( )) {117 if(!assetInstance.hasErrors() && assetInstance.save(flush: true)) { 118 118 flash.message = "Asset ${assetInstance.id} created" 119 119 redirect(action:show,id:assetInstance.id)
Note: See TracChangeset
for help on using the changeset viewer.