Changeset 334 for trunk/grails-app/controllers
- Timestamp:
 - Feb 9, 2010, 1:57:23 AM (16 years ago)
 - File:
 - 
          
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
trunk/grails-app/controllers/AssetDetailedController.groovy
r326 r334 105 105 def s = csvService.buildAssetTree(assetList) 106 106 render s 107 }108 109 /**110 * List action.111 */112 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])113 def list = {114 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100)115 [ assetInstanceList: Asset.list( params ), assetInstanceTotal: Asset.count() ]116 107 } 117 108 … … 309 300 else { 310 301 flash.message = "Asset not found with id ${params.id}" 311 redirect(action: list)302 redirect(action:search) 312 303 } 313 304 } … … 368 359 if(result.error.code == "default.not.found") { 369 360 flash.message = g.message(code: result.error.code, args: ["Asset", params.assetToCopy?.id]) 370 redirect(action: list)361 redirect(action: search) 371 362 return 372 363 }  
Note: See TracChangeset
          for help on using the changeset viewer.
      