Changeset 178 for trunk/grails-app/controllers/AssetTypeController.groovy
- Timestamp:
- Nov 2, 2009, 3:25:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetTypeController.groovy
r160 r178 67 67 } 68 68 assetTypeInstance.properties = params 69 if(!assetTypeInstance.hasErrors() && assetTypeInstance.save( )) {69 if(!assetTypeInstance.hasErrors() && assetTypeInstance.save(flush: true)) { 70 70 flash.message = "AssetType ${params.id} updated" 71 71 redirect(action:show,id:assetTypeInstance.id) … … 89 89 def save = { 90 90 def assetTypeInstance = new AssetType(params) 91 if(!assetTypeInstance.hasErrors() && assetTypeInstance.save( )) {91 if(!assetTypeInstance.hasErrors() && assetTypeInstance.save(flush: true)) { 92 92 flash.message = "AssetType ${assetTypeInstance.id} created" 93 93 redirect(action:show,id:assetTypeInstance.id)
Note: See TracChangeset
for help on using the changeset viewer.