- Timestamp:
- May 31, 2010, 9:39:19 PM (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/UnitOfMeasureDetailedController.groovy
r556 r559 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class UnitOfMeasureController extends BaseAppAdminController { 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager']) 4 class UnitOfMeasureDetailedController extends BaseController { 4 5 5 6 def index = { redirect(action:list,params:params) } … … 14 15 15 16 def show = { 17 18 // In the case of an actionSubmit button, rewrite action name from 'index'. 19 if(params._action_Show) 20 params.action='show' 21 16 22 def unitOfMeasureInstance = UnitOfMeasure.get( params.id ) 17 23 … … 43 49 44 50 def edit = { 51 52 // In the case of an actionSubmit button, rewrite action name from 'index'. 53 if(params._action_Edit) 54 params.action='edit' 55 45 56 def unitOfMeasureInstance = UnitOfMeasure.get( params.id ) 46 57
Note: See TracChangeset
for help on using the changeset viewer.