Skip to content

Commit

Permalink
Default option value button not always shown
Browse files Browse the repository at this point in the history
* if the option's allowed values contains the default, don't show the
* default value button
  • Loading branch information
gschueler committed Jul 24, 2013
1 parent 6702368 commit 3a282ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
</g:javascript>
</g:if>
</g:if>
<g:if test="${!optionSelect.enforced && !optionSelect.multivalued && !optionSelect.secureInput && optionSelect.defaultValue}">
<g:if test="${!optionSelect.enforced && !optionSelect.multivalued && !optionSelect.secureInput && optionSelect.defaultValue && !(optionSelect.values.contains(optionSelect.defaultValue))}">
<span class="action button"
id="${optName.encodeAsJavaScript()}_setdefault"
title="Click to use default value: ${optionSelect.defaultValue.encodeAsHTML()}"
Expand Down

0 comments on commit 3a282ac

Please sign in to comment.