Changeset 382 for trunk/grails-app/controllers
- Timestamp:
- Feb 18, 2010, 3:50:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r375 r382 13 13 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 14 14 def index = { redirect(action:search, params:params) } 15 16 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])17 def list = {18 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100)19 [ inventoryItemInstanceList: InventoryItem.list( params ), inventoryItemInstanceTotal: InventoryItem.count() ]20 }21 15 22 16 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
Note: See TracChangeset
for help on using the changeset viewer.