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/AssetDetailedController.groovy

    r161 r178  
    9393            }
    9494            assetInstance.properties = params
    95             if(!assetInstance.hasErrors() && assetInstance.save()) {
     95            if(!assetInstance.hasErrors() && assetInstance.save(flush: true)) {
    9696                flash.message = "Asset ${params.id} updated"
    9797                redirect(action:show,id:assetInstance.id)
     
    115115    def save = {
    116116        def assetInstance = new Asset(params)
    117         if(!assetInstance.hasErrors() && assetInstance.save()) {
     117        if(!assetInstance.hasErrors() && assetInstance.save(flush: true)) {
    118118            flash.message = "Asset ${assetInstance.id} created"
    119119            redirect(action:show,id:assetInstance.id)
Note: See TracChangeset for help on using the changeset viewer.