Ignore:
Timestamp:
Nov 25, 2010, 9:08:43 AM (14 years ago)
Author:
gav
Message:

Domain change: as per ticket #96 - Remove unused fields from InventoryItem?.
Removed InventoryItem?.alternateItems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/InventoryItemDetailedController.groovy

    r719 r720  
    430430
    431431        if(!result.error) {
    432             def possibleAlternateItems = inventoryItemService.getPossibleAlternateItems(result.inventoryItemInstance)
    433432            def suppliers = Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    434433
    435434            return [ inventoryItemInstance : result.inventoryItemInstance,
    436                             possibleAlternateItems: possibleAlternateItems,
    437435                            suppliers: suppliers]
    438436        }
     
    457455        }
    458456
    459         def possibleAlternateItems = inventoryItemService.getPossibleAlternateItems(result.inventoryItemInstance)
    460457        def suppliers = Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    461458        render(view:'edit', model:[inventoryItemInstance: result.inventoryItemInstance.attach(),
    462                                                 possibleAlternateItems: possibleAlternateItems,
    463459                                                suppliers: suppliers])
    464460    }
Note: See TracChangeset for help on using the changeset viewer.