Changeset 161 for trunk/grails-app/controllers
- Timestamp:
- Oct 22, 2009, 4:33:25 PM (15 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetController.groovy
r118 r161 27 27 if(assetInstance) { 28 28 try { 29 assetInstance.delete( )29 assetInstance.delete(flush:true) 30 30 flash.message = "Asset ${params.id} deleted" 31 31 redirect(action:list) … … 77 77 else { 78 78 flash.message = "Asset not found with id ${params.id}" 79 redirect(action: edit,id:params.id)79 redirect(action:list) 80 80 } 81 81 } -
trunk/grails-app/controllers/AssetDetailedController.groovy
r156 r161 48 48 if(assetInstance) { 49 49 try { 50 assetInstance.delete( )50 assetInstance.delete(flush:true) 51 51 flash.message = "Asset ${params.id} deleted" 52 52 redirect(action:search) … … 103 103 else { 104 104 flash.message = "Asset not found with id ${params.id}" 105 redirect(action: edit,id:params.id)105 redirect(action:list) 106 106 } 107 107 }
Note: See TracChangeset
for help on using the changeset viewer.