mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Allow '0' in DropdownField (#5199)
Display falsey values as option titles when they have been included.
This commit is contained in:
parent
52226dc462
commit
72a014d933
@ -1,5 +1,5 @@
|
||||
<select $AttributesHTML>
|
||||
<% loop $Options %>
|
||||
<option value="$Value.XML"<% if $Selected %> selected="selected"<% end_if %><% if $Disabled %> disabled="disabled"<% end_if %>><% if Title %>$Title.XML<% else %> <% end_if %></option>
|
||||
<option value="$Value.XML"<% if $Selected %> selected="selected"<% end_if %><% if $Disabled %> disabled="disabled"<% end_if %>><% if $Title.exists %>$Title.XML<% else %> <% end_if %></option>
|
||||
<% end_loop %>
|
||||
</select>
|
||||
|
Loading…
x
Reference in New Issue
Block a user