Ignore:
Timestamp:
Dec 1, 2009, 3:45:52 AM (10 years ago)
Author:
gav
Message:

Switch InventoryMovement to the Grails provided attach() from refresh().

File:
1 edited

Legend:

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

    r191 r205  
    3434        else {
    3535            if(result.inventoryMovementInstance) {
    36                 // For some reason we have to call refresh() here to get a hibernate session
    37                 // and avoid a lazy initialisation error.
    38                 render(view:'show',model:[inventoryMovementInstance:result.inventoryMovementInstance.refresh()])
     36                render(view:'show',model:[inventoryMovementInstance:result.inventoryMovementInstance.attach()])
    3937            }
    4038            else {
Note: See TracChangeset for help on using the changeset viewer.