Skip to content

Commit b427eb6

Browse files
author
brownj
committed
fix for GRAILS-1093
git-svn-id: https://svn.codehaus.org/grails/trunk@4108 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent d1c9b97 commit b427eb6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/groovy/org/codehaus/groovy/grails/plugins/web/ControllersGrailsPlugin.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ class ControllersGrailsPlugin {
418418
def constrainedPropertyBuilder = new ConstrainedPropertyBuilder(commandObject)
419419
validationClosure.setDelegate(constrainedPropertyBuilder)
420420
validationClosure()
421-
commandObjectMetaClass.constrainedProperties = constrainedPropertyBuilder.constrainedProperties
421+
commandObjectMetaClass.constraints = constrainedPropertyBuilder.constrainedProperties
422422
} else {
423-
commandObjectMetaClass.constrainedProperties = [:]
423+
commandObjectMetaClass.constraints = [:]
424424
}
425425
}
426426
}

src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public Object handleAction(GroovyObject controller,Closure action, HttpServletRe
425425
binder.bind(new MutablePropertyValues(paramsMap));
426426

427427
Errors errors = new BindException(commandObject, paramType.getName());
428-
Collection constrainedProperties = ((Map)commandObject.getProperty("constrainedProperties")).values();
428+
Collection constrainedProperties = ((Map)commandObject.getProperty("constraints")).values();
429429
for (Iterator i = constrainedProperties.iterator(); i.hasNext();) {
430430
ConstrainedProperty constrainedProperty = (ConstrainedProperty)i.next();
431431
constrainedProperty.validate(commandObject, commandObject.getProperty( constrainedProperty.getPropertyName() ),errors);

0 commit comments

Comments
 (0)