Ignore:
Timestamp:
Nov 2, 2009, 3:25:26 PM (14 years ago)
Author:
gav
Message:

Resolve ticket #12 again.
Turn query cache on again since this did not resolve the problem.
Implement fix as per http://jira.codehaus.org/browse/GRAILS-5111, add flush:true to save.
Adjust templates to include above and remove home url.
Re-generate all non detailed views and controllers.
Manually add flush:true and remove home url to detailed views and controllers.

File:
1 edited

Legend:

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

    r175 r178  
    6767            }
    6868            inventoryLocationInstance.properties = params
    69             if(!inventoryLocationInstance.hasErrors() && inventoryLocationInstance.save()) {
     69            if(!inventoryLocationInstance.hasErrors() && inventoryLocationInstance.save(flush: true)) {
    7070                flash.message = "InventoryLocation ${params.id} updated"
    7171                redirect(action:show,id:inventoryLocationInstance.id)
     
    8989    def save = {
    9090        def inventoryLocationInstance = new InventoryLocation(params)
    91         if(!inventoryLocationInstance.hasErrors() && inventoryLocationInstance.save()) {
     91        if(!inventoryLocationInstance.hasErrors() && inventoryLocationInstance.save(flush: true)) {
    9292            flash.message = "InventoryLocation ${inventoryLocationInstance.id} created"
    9393            redirect(action:show,id:inventoryLocationInstance.id)
Note: See TracChangeset for help on using the changeset viewer.