Changeset 400


Ignore:
Timestamp:
Feb 23, 2010, 10:47:25 AM (10 years ago)
Author:
gav
Message:

Change template controller to use default.optimistic.locking.failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/scaffolding/Controller.groovy

    r178 r400  
    6161                if(${propertyName}.version > version) {
    6262                    <%def lowerCaseName = grails.util.GrailsNameUtils.getPropertyName(className)%>
    63                     ${propertyName}.errors.rejectValue("version", "${lowerCaseName}.optimistic.locking.failure", "Another user has updated this ${className} while you were editing.")
     63                    ${propertyName}.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[${propertyName}:${propertyName}])
    6565                    return
Note: See TracChangeset for help on using the changeset viewer.