Skip to content

Commit cc5b909

Browse files
committed
Remove the empty option from multiple-value select custom fields
For multiple-value selects, unlike vanilla version where we need to keep the empty option so users can easily deselect all real values, current selectpicker version doesn't need this workaround, just like the previous chosen version.
1 parent 5afd223 commit cc5b909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/html/Elements/EditCustomFieldSelect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ my $use_chosen = CachedCustomFieldValues($CustomField)->Count >= 10 ? 1 : 0;
175175
$m->callback( CallbackName => 'Chosen', UseChosen => \$use_chosen, CustomField => $CustomField );
176176

177177
# it's weird to see "(no value) X" in the input when selecting multiple values
178-
$show_empty_option = 0 if $use_chosen && $Multiple;
178+
$show_empty_option = 0 if $Multiple;
179179
</%init>
180180
<%ARGS>
181181
$Object => undef

0 commit comments

Comments
 (0)