Changeset 342 for trunk


Ignore:
Timestamp:
Feb 10, 2010, 2:45:59 AM (15 years ago)
Author:
gav
Message:

Redirect to AssetSubItem search view in some cases.

File:
1 edited

Legend:

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

    r336 r342  
    1313
    1414    @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) }
    1616
    1717    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
     
    8686        if(!assetSubItemInstance) {
    8787            flash.message = "AssetSubItem not found with id ${params.id}"
    88             redirect(controller: "assetDetailed", action: "search")
     88            redirect(action: "search")
    8989        }
    9090        else { return [ assetSubItemInstance : assetSubItemInstance ] }
     
    9797                assetSubItemInstance.delete(flush:true)
    9898                flash.message = "AssetSubItem ${params.id} deleted"
    99                 redirect(controller: "assetDetailed", action: "search")
     99                redirect(action: "search")
    100100            }
    101101            catch(org.springframework.dao.DataIntegrityViolationException e) {
     
    106106        else {
    107107            flash.message = "AssetSubItem not found with id ${params.id}"
    108             redirect(controller: "assetDetailed", action: "search")
     108            redirect(action: "search")
    109109        }
    110110    }
     
    115115        if(!assetSubItemInstance) {
    116116            flash.message = "AssetSubItem not found with id ${params.id}"
    117             redirect(controller: "assetDetailed", action: "search")
     117            redirect(action: "search")
    118118        }
    119119        else {
     
    178178        else {
    179179            flash.message = "AssetSubItem not found with id ${params.id}"
    180             redirect(controller: "assetDetailed", action: "search")
     180            redirect(action: "search")
    181181        }
    182182    }
Note: See TracChangeset for help on using the changeset viewer.