aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-05-11 17:22:46 +0200
committerZog2018-05-11 17:22:46 +0200
commitb339918561c936b8055444cbbc734e4941d48215 (patch)
treebf54fcebe619caed155045862ce0c6d8642e9cf5
parentdcede6f1d323c827ae9e663b312ab32f2037b525 (diff)
downloadchouette-core-b339918561c936b8055444cbbc734e4941d48215.tar.bz2
Refs #6990; Fix Referentials filters
-rw-r--r--app/views/referentials/_filters.html.slim4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/referentials/_filters.html.slim b/app/views/referentials/_filters.html.slim
index 36db5bfb5..ebaefb0f2 100644
--- a/app/views/referentials/_filters.html.slim
+++ b/app/views/referentials/_filters.html.slim
@@ -14,12 +14,12 @@
- if (network_ids = @referential.lines.pluck(:network_id).uniq.compact).size > 1
.form-group.togglable class=filter_item_class(params[:q], :network_id_eq_any)
= f.label t('activerecord.attributes.referential.networks'), required: false, class: 'control-label'
- = f.input :network_id_eq_any, collection: network_ids, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>#{LineReferential.first.networks.find(l).name}</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list' }
+ = f.input :network_id_eq_any, collection: network_ids, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>#{Chouette::Network.find(l).name}</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list' }
- if (company_ids = @referential.lines.pluck(:company_id).uniq.compact).size > 1
.form-group.togglable class=filter_item_class(params[:q], :company_id_eq_any)
= f.label t('activerecord.attributes.referential.companies'), required: false, class: 'control-label'
- = f.input :company_id_eq_any, collection: company_ids, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>#{LineReferential.first.companies.find(l).name}</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list' }
+ = f.input :company_id_eq_any, collection: company_ids, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>#{Chouette::Company.find(l).name}</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list' }
.actions
= link_to t('actions.erase'), @workbench, class: 'btn btn-link'