Changeset 191 for trunk/grails-app/controllers
- Timestamp:
- Nov 19, 2009, 9:16:21 PM (15 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/EntryDetailedController.groovy
r186 r191 96 96 def entryInstance = new Entry() 97 97 entryInstance.task = taskInstance 98 entryInstance.entryType = EntryType.get(params.entryType.id) 98 99 return ['entryInstance':entryInstance] 99 100 } -
trunk/grails-app/controllers/InventoryMovementDetailedController.groovy
r177 r191 34 34 else { 35 35 if(result.inventoryMovementInstance) { 36 render(view:'show',model:[inventoryMovementInstance: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()]) 37 39 } 38 40 else { 39 41 flash.message = "Could not delete inventory movement." 40 redirect(controller:"taskDetailed", action:"search" , id:result.taskId)42 redirect(controller:"taskDetailed", action:"search") 41 43 } 42 44 }
Note: See TracChangeset
for help on using the changeset viewer.