- Timestamp:
- Feb 10, 2010, 2:45:59 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetSubItemDetailedController.groovy
r336 r342 13 13 14 14 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 15 def index = { redirect( controller: "assetDetailed",params:params) }15 def index = { redirect(action:search,params:params) } 16 16 17 17 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) … … 86 86 if(!assetSubItemInstance) { 87 87 flash.message = "AssetSubItem not found with id ${params.id}" 88 redirect( controller: "assetDetailed",action: "search")88 redirect(action: "search") 89 89 } 90 90 else { return [ assetSubItemInstance : assetSubItemInstance ] } … … 97 97 assetSubItemInstance.delete(flush:true) 98 98 flash.message = "AssetSubItem ${params.id} deleted" 99 redirect( controller: "assetDetailed",action: "search")99 redirect(action: "search") 100 100 } 101 101 catch(org.springframework.dao.DataIntegrityViolationException e) { … … 106 106 else { 107 107 flash.message = "AssetSubItem not found with id ${params.id}" 108 redirect( controller: "assetDetailed",action: "search")108 redirect(action: "search") 109 109 } 110 110 } … … 115 115 if(!assetSubItemInstance) { 116 116 flash.message = "AssetSubItem not found with id ${params.id}" 117 redirect( controller: "assetDetailed",action: "search")117 redirect(action: "search") 118 118 } 119 119 else { … … 178 178 else { 179 179 flash.message = "AssetSubItem not found with id ${params.id}" 180 redirect( controller: "assetDetailed",action: "search")180 redirect(action: "search") 181 181 } 182 182 }
Note: See TracChangeset
for help on using the changeset viewer.