Skip to content

Commit 6bff04f

Browse files
author
nebolsin
committed
fix for GRAILS-687
git-svn-id: https://svn.codehaus.org/grails/trunk@4121 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent 093105b commit 6bff04f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grails/grails-app/taglib/FormTagLib.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class FormTagLib {
382382
def renderNoSelectionOption = { noSelectionKey, noSelectionValue, value ->
383383
// If a label for the '--Please choose--' first item is supplied, write it out
384384
out << '<option value="' << (noSelectionKey == null ? "" : noSelectionKey) << '"'
385-
if(noSelectionKey == value) {
385+
if(noSelectionKey.equals(value)) {
386386
out << ' selected="selected" '
387387
}
388388
out << '>' << noSelectionValue.encodeAsHTML() << '</option>'

0 commit comments

Comments
 (0)