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

    r150 r178  
    3636            def personInstance = Person.get(authenticateService.userDomain().id)
    3737                personInstance.properties = params
    38                 if (!personInstance.hasErrors() && personInstance.save()) {
     38                if (!personInstance.hasErrors() && personInstance.save(flush: true)) {
    3939                    def sess = getSession()
    4040                    sess.setMaxInactiveInterval(personInstance.sessionTimeout)
     
    6464                personInstance.password = authenticateService.encodePassword(personInstance.pass)
    6565
    66                 if (!personInstance.hasErrors() && personInstance.save()) {
     66                if (!personInstance.hasErrors() && personInstance.save(flush: true)) {
    6767                    //userCache.removeUserFromCache(personInstance.loginName)
    6868                    flash.message = "Password changed successfully."
Note: See TracChangeset for help on using the changeset viewer.