- Timestamp:
- Nov 2, 2009, 3:25:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r175 r178 20 20 // Quick Search: 21 21 if(!params.filter) { 22 return[ inventoryItemInstanceList: InventoryItem.list( params ), inventoryItemInstanceTotal: InventoryItem.count() ]22 return[ inventoryItemInstanceList: InventoryItem.list( params ), inventoryItemInstanceTotal: InventoryItem.count(), filterParams: params ] 23 23 } 24 24 // filterPane: … … 93 93 } 94 94 inventoryItemInstance.properties = params 95 if(!inventoryItemInstance.hasErrors() && inventoryItemInstance.save( )) {95 if(!inventoryItemInstance.hasErrors() && inventoryItemInstance.save(flush: true)) { 96 96 flash.message = "InventoryItem ${params.id} updated" 97 97 redirect(action:show,id:inventoryItemInstance.id) … … 115 115 def save = { 116 116 def inventoryItemInstance = new InventoryItem(params) 117 if(!inventoryItemInstance.hasErrors() && inventoryItemInstance.save( )) {117 if(!inventoryItemInstance.hasErrors() && inventoryItemInstance.save(flush: true)) { 118 118 flash.message = "InventoryItem ${inventoryItemInstance.id} created" 119 119 redirect(action:show,id:inventoryItemInstance.id)
Note: See TracChangeset
for help on using the changeset viewer.