Skip to content

Commit

Permalink
ignore date range search if search string exclude delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
gathuku committed Aug 9, 2021
1 parent b79f3bf commit c15f577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ajax-datatables-rails/datatable/column/date_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def range_end
end

def empty_range_search?
(formatted_value == delimiter) || (range_start.blank? && range_end.blank?)
(formarted_value.exclude?(delimiter)) || (formatted_value == delimiter) || (range_start.blank? && range_end.blank?)
end

# Do a range search
Expand Down

0 comments on commit c15f577

Please sign in to comment.