Changeset 334


Ignore:
Timestamp:
Feb 9, 2010, 1:57:23 AM (14 years ago)
Author:
gav
Message:

Removed list action from Asset detailed controller and views.

Location:
trunk/grails-app
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AssetDetailedController.groovy

    r326 r334  
    105105        def s = csvService.buildAssetTree(assetList)
    106106        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() ]
    116107    }
    117108
     
    309300        else {
    310301            flash.message = "Asset not found with id ${params.id}"
    311             redirect(action:list)
     302            redirect(action:search)
    312303        }
    313304    }
     
    368359        if(result.error.code == "default.not.found") {
    369360            flash.message = g.message(code: result.error.code, args: ["Asset", params.assetToCopy?.id])
    370             redirect(action: list)
     361            redirect(action: search)
    371362            return
    372363        }
Note: See TracChangeset for help on using the changeset viewer.