mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX When using a single rule that with a hidden condition, cms would not correctly reflect the database
This commit is contained in:
parent
13c0bfb017
commit
5ca720b508
@ -1,8 +1,8 @@
|
||||
<select class="displayOption customRuleField" name="{$FieldName}[CustomRules][$Pos][Display]">
|
||||
<option value="Show" <% if Display = Show %>selected="selected"<% end_if %>><% _t('SHOWTHISFIELD', 'Show This Field') %></option>
|
||||
<option value="Hide" <% if Display = Hide %><% if First %><% else %>selected="selected"<% end_if %><% end_if %>><% _t('HIDETHISFIELD', 'Hide This Field') %></option>
|
||||
<option value="Hide" <% if Display = Hide %>selected="selected"<% end_if %>><% _t('HIDETHISFIELD', 'Hide This Field') %></option>
|
||||
</select>
|
||||
|
||||
|
||||
<label><% _t('WHEN', 'When') %></label>
|
||||
<select class="fieldOption customRuleField" name="{$FieldName}[CustomRules][$Pos][ConditionField]">
|
||||
<option value="" selected="selected"></option>
|
||||
|
Loading…
Reference in New Issue
Block a user