Changeset 684 for trunk/grails-app
- Timestamp:
- Oct 6, 2010, 12:48:17 AM (14 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 2 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 { -
trunk/grails-app/controllers/AssetSubItemExtendedAttributeDetailedController.groovy
r663 r684 22 22 def assetSubItemExtendedAttributeInstance = AssetSubItemExtendedAttribute.get( params.id ) 23 23 if(assetSubItemExtendedAttributeInstance) { 24 def assetSubItem = assetSubItemExtendedAttributeInstance.assetSubItem 24 25 try { 25 26 assetSubItemExtendedAttributeInstance.delete(flush:true) 26 27 flash.message = "AssetSubItemExtendedAttribute ${params.id} deleted" 27 redirect(controller: "asset Detailed", action: "search")28 redirect(controller: "assetSubItemDetailed", action: 'show', id: assetSubItem.id) 28 29 } 29 30 catch(org.springframework.dao.DataIntegrityViolationException e) { … … 65 66 if(!assetSubItemExtendedAttributeInstance.hasErrors() && assetSubItemExtendedAttributeInstance.save(flush: true)) { 66 67 flash.message = "AssetSubItemExtendedAttribute ${params.id} updated" 67 redirect(action:show,id:assetSubItemExtendedAttributeInstance.id) 68 //redirect(action:show,id:assetSubItemExtendedAttributeInstance.id) 69 redirect(controller: 'assetSubItemDetailed', action: 'show', id: assetSubItemExtendedAttributeInstance.assetSubItem.id) 68 70 } 69 71 else {
Note: See TracChangeset
for help on using the changeset viewer.