diff options
| author | Alban Peignier | 2018-02-19 19:24:17 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2018-02-19 19:24:17 +0100 | 
| commit | 06acf89e18059ddab8d5817f897652c910d0627f (patch) | |
| tree | 88d63b049b9018e5c4552d1b1718f2c87fc4e62e /app | |
| parent | 3809301116aec5466445b29637026804da3d6745 (diff) | |
| download | chouette-core-06acf89e18059ddab8d5817f897652c910d0627f.tar.bz2 | |
Avoid error in referentials/_overview when one of lines isn't associated to a company
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/referentials/_overview.html.slim | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/app/views/referentials/_overview.html.slim b/app/views/referentials/_overview.html.slim index 143784800..539c25fd4 100644 --- a/app/views/referentials/_overview.html.slim +++ b/app/views/referentials/_overview.html.slim @@ -9,7 +9,7 @@                span.fa.fa-search          .form-group.togglable            = f.label Chouette::Line.human_attribute_name(:company_id), required: false, class: 'control-label' -          = f.input :company_id_eq_any, collection: overview.referential_lines.map(&:company).uniq.sort_by(&:name), as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + l.name + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'} +          = f.input :company_id_eq_any, collection: overview.referential_lines.map(&:company).compact.uniq.sort_by(&:name), as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + l.name + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'}          .form-group.togglable            = f.label Chouette::Line.human_attribute_name(:transport_mode), required: false, class: 'control-label' | 
