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

    r155 r178  
    9191            }
    9292            taskProcedureInstance.properties = params
    93             if(!taskProcedureInstance.hasErrors() && taskProcedureInstance.save()) {
     93            if(!taskProcedureInstance.hasErrors() && taskProcedureInstance.save(flush: true)) {
    9494                flash.message = "TaskProcedure ${params.id} updated"
    9595                redirect(action:show,id:taskProcedureInstance.id)
     
    123123        def taskInstance = Task.get(params.taskInstance.id)
    124124
    125         if(!taskProcedureInstance.hasErrors() && taskProcedureInstance.save()) {
     125        if(!taskProcedureInstance.hasErrors() && taskProcedureInstance.save(flush: true)) {
    126126            taskProcedureInstance.addToTasks(taskInstance)
    127127            flash.message = "TaskProcedure ${taskProcedureInstance.id} created."
Note: See TracChangeset for help on using the changeset viewer.