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

    r150 r178  
    132132        }
    133133
    134         if (!person.hasErrors() && person.save()) {
     134        if (!person.hasErrors() && person.save(flush: true)) {
    135135            Authority.findAll().each { it.removeFromPersons(person) }
    136136            addRoles(person)
     
    157157        person.properties = params
    158158        person.password = authenticateService.encodePassword(params.pass)
    159         if (person.save()) {
     159        if (person.save(flush: true)) {
    160160            addRoles(person)
    161161            redirect action: show, id: person.id
Note: See TracChangeset for help on using the changeset viewer.