Ignore:
Timestamp:
Nov 2, 2009, 3:25:26 PM (15 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/TaskDetailedController.groovy

    r175 r178  
    275275            }
    276276            taskInstance.properties = params
    277             if(!taskInstance.hasErrors() && taskInstance.save()) {
     277            if(!taskInstance.hasErrors() && taskInstance.save(flush: true)) {
    278278                flash.message = "Task ${params.id} updated"
    279279                redirect(action:show,id:taskInstance.id)
     
    297297    def save = {
    298298        def taskInstance = new Task(params)
    299         if(!taskInstance.hasErrors() && taskInstance.save()) {
     299        if(!taskInstance.hasErrors() && taskInstance.save(flush: true)) {
    300300            flash.message = "Task ${taskInstance.id} created"
    301301            redirect(action:show,id:taskInstance.id)
Note: See TracChangeset for help on using the changeset viewer.