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

    r157 r178  
    9393                taskRecurringScheduleInstance.setNextTargetCompletionDate()
    9494
    95                 if(!taskRecurringScheduleInstance.hasErrors() && taskRecurringScheduleInstance.save())
     95                if(!taskRecurringScheduleInstance.hasErrors() && taskRecurringScheduleInstance.save(flush: true))
    9696                {
    9797                    flash.message = "Recurring Schedule ${params.id} updated"
     
    139139            }
    140140
    141             if(!taskRecurringScheduleInstance.hasErrors() && taskRecurringScheduleInstance.save()) {
     141            if(!taskRecurringScheduleInstance.hasErrors() && taskRecurringScheduleInstance.save(flush: true)) {
    142142
    143143                taskInstance.taskRecurringSchedule = taskRecurringScheduleInstance
    144144
    145                 if(taskInstance.save()) {
     145                if(taskInstance.save(flush: true)) {
    146146                    flash.message = "Recurring Schedule ${taskRecurringScheduleInstance.id} created"
    147147                    redirect(action:show,id:taskRecurringScheduleInstance.id)
Note: See TracChangeset for help on using the changeset viewer.