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

    r147 r178  
    6868        if(entryInstance) {
    6969            entryInstance.properties = params
    70             if(!entryInstance.hasErrors() && entryInstance.save()) {
     70            if(!entryInstance.hasErrors() && entryInstance.save(flush: true)) {
    7171                flash.message = "Entry ${params.id} updated"
    7272                redirect(action:show,id:entryInstance.id)
     
    9999
    100100        entryInstance.enteredBy = Person.get(authenticateService.userDomain().id)
    101         if(!entryInstance.hasErrors() && entryInstance.save()) {
     101        if(!entryInstance.hasErrors() && entryInstance.save(flush: true)) {
    102102            flash.message = "Entry ${entryInstance.id} created"
    103103            redirect(controller:"taskDetailed", action:"show", id: params.task.id)
Note: See TracChangeset for help on using the changeset viewer.