Skip to content

Commit

Permalink
fix disabling null comparators in :select and :select_multiple with s…
Browse files Browse the repository at this point in the history
…earch_ui_options
  • Loading branch information
scambra committed Nov 4, 2024
1 parent ebf7465 commit a2f4c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_scaffold/helpers/search_column_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def active_scaffold_search_multi_select(column, options, ui_options: column.opti
def active_scaffold_search_select(column, html_options, options = {}, ui_options: column.options)
record = html_options.delete(:object)
associated = html_options.delete :value
if include_null_comparators?(column)
if include_null_comparators?(column, ui_options: ui_options)
range_opts = html_options.slice(:name, :id)
range_opts[:opt_value], associated, = field_search_params_range_values(column)
operators = active_scaffold_search_select_comparator_options(column, ui_options: ui_options)
Expand Down

0 comments on commit a2f4c15

Please sign in to comment.