Skip to content

Commit 2f4d0e6

Browse files
author
leebutts
committed
GRAILS-974 1.4 compatibility fix
git-svn-id: https://svn.codehaus.org/grails/trunk@4500 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent 3db7e95 commit 2f4d0e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/org/codehaus/groovy/grails/web/binding/GrailsDataBinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private PropertyValues filterPropertyValues(PropertyValues propertyValues, Strin
179179
for (int i = 0; i < valueArray.length; i++) {
180180
PropertyValue propertyValue = valueArray[i];
181181
if(propertyValue.getName().startsWith(prefix + PREFIX_SEPERATOR)){
182-
newValues.addPropertyValue(propertyValue.getName().replace(prefix + PREFIX_SEPERATOR, ""), propertyValue.getValue());
182+
newValues.addPropertyValue(propertyValue.getName().replaceFirst(prefix + PREFIX_SEPERATOR, ""), propertyValue.getValue());
183183
}
184184
}
185185
return newValues;

0 commit comments

Comments
 (0)