Changeset 727 for trunk/grails-app/services
- Timestamp:
- Nov 28, 2010, 12:32:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/InventoryItemService.groovy
r720 r727 70 70 result.showTab = [:] 71 71 switch (params.showTab) { 72 case "showDetailTab":73 result.showTab.detail = new String("true")74 break75 72 case "showMovementTab": 76 73 result.showTab.movement = new String("true") … … 167 164 168 165 result.inventoryItemInstance.properties = params 166 result.inventoryItemInstance.setAlternateSuppliersFromCheckBoxList(params.alternateSuppliers) 167 result.inventoryItemInstance.setSpareForFromCheckBoxList(params.spareFor) 168 169 // Fetch to prevent lazy initialization error. 170 result.inventoryItemInstance.unitOfMeasure 169 171 170 172 if(result.inventoryItemInstance.hasErrors() || !result.inventoryItemInstance.save()) … … 204 206 205 207 result.inventoryItemInstance = new InventoryItem(params) 208 result.inventoryItemInstance.setAlternateSuppliersFromCheckBoxList(params.alternateSuppliers) 209 result.inventoryItemInstance.setSpareForFromCheckBoxList(params.spareFor) 206 210 207 211 if(result.inventoryItemInstance.hasErrors() || !result.inventoryItemInstance.save())
Note: See TracChangeset
for help on using the changeset viewer.