Permalink
Browse files

GRAILS-3468: Make the check for attribute value case insensitive

  • Loading branch information...
1 parent 80d2f7b commit 0b22ec55c58bb98235cf032c944abd8088f6a106 @denisfalqueto committed Jan 27, 2012
@@ -215,7 +215,7 @@ class FormTagLib {
def attrValue = attrs.remove(attrName)
// If the value is the same as the name or if it is a boolean value,
// reintroduce the attribute to the map, so it is output later
- if (attrValue && (attrValue == attrName || Boolean.valueOf(attrValue))) {
+ if (attrValue && (attrValue.equalsIgnoreCase(attrName) || Boolean.valueOf(attrValue))) {
attrs.put(attrName, attrName)
}
}

0 comments on commit 0b22ec5

Please sign in to comment.