From cd955e5e66f1b5cc21d36026de8a4e796d59f15c Mon Sep 17 00:00:00 2001 From: Mitch Kett Date: Fri, 13 Nov 2020 09:17:34 -0500 Subject: [PATCH] Updated view to populate default filter operator when adding a filter --- app/views/rails_admin/main/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/rails_admin/main/index.html.haml b/app/views/rails_admin/main/index.html.haml index df1f5f420c..56ff49f699 100644 --- a/app/views/rails_admin/main/index.html.haml +++ b/app/views/rails_admin/main/index.html.haml @@ -35,7 +35,7 @@ - else - '' %li - %a{href: '#', :"data-field-label" => field.label, :"data-field-name" => field.name, :"data-field-options" => field_options.html_safe, :"data-field-type" => field.type, :"data-field-value" => "", :"data-field-datetimepicker-format" => (field.try(:parser) && field.parser.to_momentjs)}= capitalize_first_letter(field.label) + %a{href: '#', :"data-field-label" => field.label, :"data-field-name" => field.name, :"data-field-operator" => field.default_filter_operator, :"data-field-options" => field_options.html_safe, :"data-field-type" => field.type, :"data-field-value" => "", :"data-field-datetimepicker-format" => (field.try(:parser) && field.parser.to_momentjs)}= capitalize_first_letter(field.label) %style - properties.select{ |p| p.column_width.present? }.each do |property|