diff options
| author | Zog | 2018-02-06 11:54:19 +0100 |
|---|---|---|
| committer | Zog | 2018-02-06 11:54:19 +0100 |
| commit | 5bc9ba8dcb198029a43adbb1d79b8a496a5c1c69 (patch) | |
| tree | d31664e09b9bf1c87891caba2520463acf12a600 | |
| parent | 7d1c680a97965ae21405cb2fe8564e823d6b01ef (diff) | |
| download | chouette-core-5bc9ba8dcb198029a43adbb1d79b8a496a5c1c69.tar.bz2 | |
Fix StopAreas filters when no filter is present
| -rw-r--r-- | app/views/stop_areas/_filters.html.slim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/stop_areas/_filters.html.slim b/app/views/stop_areas/_filters.html.slim index 1d71d477a..00369d3ed 100644 --- a/app/views/stop_areas/_filters.html.slim +++ b/app/views/stop_areas/_filters.html.slim @@ -12,7 +12,7 @@ .form-group.togglable class=filter_item_class(params[:q], :area_type_eq_any) = f.label Chouette::StopArea.human_attribute_name(:area_type), required: false, class: 'control-label' - = f.input :area_type_eq_any, checked: params[:q][:area_type_eq_any], collection: Chouette::AreaType.options, as: :check_boxes, label: false, label_method: lambda{|w| ("<span>" + w[0] + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list' } + = f.input :area_type_eq_any, checked: params[:q] && params[:q][:area_type_eq_any], collection: Chouette::AreaType.options, as: :check_boxes, label: false, label_method: lambda{|w| ("<span>" + w[0] + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list' } .actions = link_to 'Effacer', @workbench, class: 'btn btn-link' |
