- Timestamp:
- Oct 6, 2010, 12:48:17 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetExtendedAttributeDetailedController.groovy
r656 r684 22 22 def assetExtendedAttributeInstance = AssetExtendedAttribute.get( params.id ) 23 23 if(assetExtendedAttributeInstance) { 24 def asset = assetExtendedAttributeInstance.asset 24 25 try { 25 26 assetExtendedAttributeInstance.delete(flush:true) 26 27 flash.message = "AssetExtendedAttribute ${params.id} deleted" 27 redirect(controller: "assetDetailed", action: "search")28 redirect(controller: "assetDetailed", action: 'show', id: asset.id) 28 29 } 29 30 catch(org.springframework.dao.DataIntegrityViolationException e) { … … 65 66 if(!assetExtendedAttributeInstance.hasErrors() && assetExtendedAttributeInstance.save(flush: true)) { 66 67 flash.message = "AssetExtendedAttribute ${params.id} updated" 67 redirect(action:show,id:assetExtendedAttributeInstance.id) 68 //redirect(action:show,id:assetExtendedAttributeInstance.id) 69 redirect(controller: 'assetDetailed', action: 'show', id: assetExtendedAttributeInstance.asset.id) 68 70 } 69 71 else {
Note: See TracChangeset
for help on using the changeset viewer.