Changeset 400 for trunk/src/templates
- Timestamp:
- Feb 23, 2010, 10:47:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/templates/scaffolding/Controller.groovy
r178 r400 61 61 if(${propertyName}.version > version) { 62 62 <%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") 64 64 render(view:'edit',model:[${propertyName}:${propertyName}]) 65 65 return
Note: See TracChangeset
for help on using the changeset viewer.