Changeset 720 for trunk/grails-app/controllers
- Timestamp:
- Nov 25, 2010, 9:08:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r719 r720 430 430 431 431 if(!result.error) { 432 def possibleAlternateItems = inventoryItemService.getPossibleAlternateItems(result.inventoryItemInstance)433 432 def suppliers = Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } 434 433 435 434 return [ inventoryItemInstance : result.inventoryItemInstance, 436 possibleAlternateItems: possibleAlternateItems,437 435 suppliers: suppliers] 438 436 } … … 457 455 } 458 456 459 def possibleAlternateItems = inventoryItemService.getPossibleAlternateItems(result.inventoryItemInstance)460 457 def suppliers = Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } 461 458 render(view:'edit', model:[inventoryItemInstance: result.inventoryItemInstance.attach(), 462 possibleAlternateItems: possibleAlternateItems,463 459 suppliers: suppliers]) 464 460 }
Note: See TracChangeset
for help on using the changeset viewer.