Ignore:
Timestamp:
Feb 18, 2010, 3:09:18 AM (14 years ago)
Author:
gav
Message:

Svn move InventoryLocation and InventoryStore controllers and views to detailed and complete detailing.

Location:
trunk/grails-app/controllers
Files:
1 edited
1 moved

Legend:

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

    r298 r377  
    1818    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1919    def show = {
     20
     21        // In the case of an actionSubmit button, rewrite action name from 'index'.
     22        if(params._action_Show)
     23            params.action='show'
     24
    2025        def inventoryLocationInstance = InventoryLocation.get( params.id )
    2126
     
    4752
    4853    def edit = {
     54
     55        // In the case of an actionSubmit button, rewrite action name from 'index'.
     56        if(params._action_Edit)
     57            params.action='edit'
     58
    4959        def inventoryLocationInstance = InventoryLocation.get( params.id )
    5060
  • trunk/grails-app/controllers/InventoryStoreDetailedController.groovy

    r361 r377  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class InventoryStoreController extends BaseAppAdminController {
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
     4class InventoryStoreDetailedController extends BaseController {
    45   
     6    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    57    def index = { redirect(action:list,params:params) }
    68
     
    1315    }
    1416
     17    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1518    def show = {
     19
     20        // In the case of an actionSubmit button, rewrite action name from 'index'.
     21        if(params._action_Show)
     22            params.action='show'
     23
    1624        def inventoryStoreInstance = InventoryStore.get( params.id )
    1725
     
    4351
    4452    def edit = {
     53
     54        // In the case of an actionSubmit button, rewrite action name from 'index'.
     55        if(params._action_Edit)
     56            params.action='edit'
     57
    4558        def inventoryStoreInstance = InventoryStore.get( params.id )
    4659
Note: See TracChangeset for help on using the changeset viewer.